Unreviewed GTK gardening. Removing an unneeded GTK-specific baseline
for a layout test that was fixed proper in r161549.

* platform/gtk/http/tests/security/redirect-BLOCKED-to-localURL-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][WK1] Add ProgressTrackerClient implementation
https://bugs.webkit.org/show_bug.cgi?id=127048

Reviewed by Anders Carlsson.

In r162034, the progress tracker client was separated from FrameLoaderClient into the
ProgressTrackerClient class. This patch adds the WebKit layer implementation of that
class for GTK-WK1 that's practically identical to the client implementation that was
in use under WebKit::FrameLoaderClient.

* GNUmakefile.am:
* WebCoreSupport/FrameLoaderClientGtk.cpp:
* WebCoreSupport/FrameLoaderClientGtk.h:
* WebCoreSupport/ProgressTrackerClientGtk.cpp: Added.
(WebKit::ProgressTrackerClient::ProgressTrackerClient):
(WebKit::ProgressTrackerClient::progressTrackerDestroyed):
(WebKit::ProgressTrackerClient::progressStarted):
(WebKit::ProgressTrackerClient::progressEstimateChanged):
(WebKit::ProgressTrackerClient::progressFinished):
* WebCoreSupport/ProgressTrackerClientGtk.h: Added.
* webkit/webkitwebview.cpp:
(webkit_web_view_init):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed test fix for Mountain Lion WebGL behavior.

Add Mountain Lion expected output matching ML's output of INVALID_OPERATION for improperly-sized textures.

* platform/mac-mountainlion/fast/canvas: Added.
* platform/mac-mountainlion/fast/canvas/webgl: Added.
* platform/mac-mountainlion/fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WordMeasurement is a struct, not a class
https://bugs.webkit.org/show_bug.cgi?id=125373

Reviewed by Anders Carlsson.

Change class to struct, because there is no reason for WordMeasurement to be a class.

No new tests, no behavior change.

* rendering/RenderBlockFlow.h:
* rendering/line/BreakingContextInlineHeaders.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Merged some subpixel skipped tests. Unreviewed.

webkit.org/b/126894 is a duplicate of webkit.org/b/126892

* platform/mac/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Web process sometimes crashes when printing in synchronous mode
https://bugs.webkit.org/show_bug.cgi?id=126979

Reviewed by Gustavo Noronha Silva.

Source/WebKit2:

When printing synchronously in GTK+ we need to make sure that we
have a list of Printers before starting the print operation. Getting
the list of printers is done synchronously by GTK+, but using a
nested main loop that might process IPC messages comming from the
UI process like EndPrinting. When the EndPrinting message is
received while the printer list is being populated, the print
operation is finished unexpectely and the web process crashes. The
PrinterListGtk class gets the list of printers in the constructor
so we just need to ensure there's an instance alive during the
synchronous print operation. In case of asynchronous printing the
printer list will be created during the print operation without
any risk, because the EndPrinting message is not sent until the
printing callback has been received in the UI process.

* GNUmakefile.list.am: Add new files to compilation.
* PlatformGTK.cmake: Ditto.
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::print): Ensure PrinterListGtk is created
before the synchronous printing and destroyed afterwards.
* WebProcess/WebPage/gtk/PrinterListGtk.cpp: Added.
(WebKit::PrinterListGtk::shared): Return the singleton.
(WebKit::PrinterListGtk::enumeratePrintersFunction): Callback
called by gtk_enumerate_printers() when a new printer is found.
(WebKit::PrinterListGtk::PrinterListGtk): Call
gtk_enumerate_printers() in syhchronous mode.
(WebKit::PrinterListGtk::~PrinterListGtk):
(WebKit::PrinterListGtk::addPrinter): Add the printer to the list
and set the default printer if needed.
(WebKit::PrinterListGtk::findPrinter): Find the printer for the
given name.
* WebProcess/WebPage/gtk/PrinterListGtk.h: Added.
* WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: Use
PrinterListGtk class to find the printer instead of calling
gtk_enumerate_printers().

Tools:

* Scripts/run-gtk-tests:
(TestRunner): Unskip
/webkit2/WebKitPrintOperation/close-after-print.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Get rid of RefCountedCustomAllocated
https://bugs.webkit.org/show_bug.cgi?id=127051

Reviewed by Antti Koivisto.

It's not used anywhere anymore, get rid of it.

* wtf/RefCounted.h:
* wtf/SizeLimits.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r162054.
http://trac.webkit.org/changeset/162054
https://bugs.webkit.org/show_bug.cgi?id=127053

Causes assertion failures in DumpRenderTree (Requested by ap
on #webkit).

* WebView/WebPreferences.mm:
(-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
(-[WebPreferences initWithCoder:]):
(+[WebPreferences standardPreferences]):
(-[WebPreferences dealloc]):
(-[WebPreferences setPrivateBrowsingEnabled:]):
(-[WebPreferences _invalidateCachedPreferences]):
* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening

Add failure test expectations for reftests added in r161626.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed test correctino for webgl compressed textures.

* fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt:
* platform/mac-mountainlion/fast/canvas: Removed.
* platform/mac-mountainlion/fast/canvas/webgl: Removed.
* platform/mac-mountainlion/fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Comment out part of r162036 which broke WebGL on many ports.

* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::getContext):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Fix intialization order of ResourceResponse constructor

Fixes the following build failure:

    WebCore/platform/network/mac/ResourceResponseMac.mm:83:7: error: field 'm_nsResponse' will be initialized after field 'm_initLevel' [-Werror,-Wreorder]
        , m_nsResponse(nsResponse)
          ^

* platform/network/mac/ResourceResponseMac.mm:
(WebCore::ResourceResponse::ResourceResponse): Reorder member
initializers to match the order that they are defined in the
header.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r162066.
http://trac.webkit.org/changeset/162066
https://bugs.webkit.org/show_bug.cgi?id=127056

The added test still fails on some bots (Requested by ap on
#webkit).

Source/WebCore:

* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::drawPatternForContainer):
* svg/graphics/SVGImage.h:
* svg/graphics/SVGImageForContainer.cpp:
(WebCore::SVGImageForContainer::drawPattern):

LayoutTests:

* css3/compositing/background-blend-mode-data-uri-svg-image-expected.html: Removed.
* css3/compositing/background-blend-mode-data-uri-svg-image.html: Removed.
* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm

Fixes the following linker error:

    Undefined symbols for architecture x86_64:
      "__ZNK7WebCore12RenderObject5styleEv", referenced from:
          -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o

* DOM/WebDOMOperations.mm: Include RenderElement.h instead of
RenderObject.h since the inline RenderObject::style() method
moved to the former header.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162081 268f45cc-cd09-0410-ab3c-d52691b4dbfc