[CSS Regions] Convert percentage-margins-* tests to ref-tests
https://bugs.webkit.org/show_bug.cgi?id=118723

Reviewed by Andreas Kling.

The patch converts the percentage margins tests for regions in ref tests.

* fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-ltr-dominant-regions.html:
* fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-rtl-dominant-regions.html:
* fast/regions/percentage-margins-rtl-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-rtl-variable-width-regions.html:
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK1] Support direct painting without GraphicsSurface
https://bugs.webkit.org/show_bug.cgi?id=118302

Reviewed by Jocelyn Turcotte.

Configure the WebGL OpenGL context to share texture with
the HostWindow OpenGL if available, and paint accelerated
using the the now shared textures.

This should return the performance without GraphicsSurface
on the WK1 code path to what it was before r135995 (28/11 2012).

* platform/graphics/qt/GraphicsContext3DQt.cpp:
(WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::paintToTextureMapper):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Added needed baselines for GTK after r149088.

* platform/gtk/editing/selection/5825350-1-expected.txt: Added.
* platform/gtk/editing/selection/5825350-2-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152970 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Added baselines for GTK+ related to subpixel layout.

* platform/gtk/editing/selection/mixed-editability-10-expected.txt: Added.
* platform/gtk/svg/W3C-SVG-1.1/animate-elem-22-b-expected.txt: Added.
* platform/gtk/svg/W3C-SVG-1.1/animate-elem-23-t-expected.txt: Added.
* platform/gtk/svg/W3C-SVG-1.1/coords-units-03-b-expected.txt: Added.
* platform/gtk/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt: Added.
* platform/gtk/svg/W3C-SVG-1.1/filters-example-01-b-expected.txt: Added.
* platform/gtk/svg/custom/pattern-with-transformation-expected.txt: Added.
* platform/gtk/svg/text/text-midpoint-split-bug-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Added new baselines for GTK+ after r152911.

* platform/gtk/fast/multicol/pagination/BottomToTop-bt-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/BottomToTop-lr-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/BottomToTop-rl-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/BottomToTop-tb-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/LeftToRight-bt-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/LeftToRight-lr-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/LeftToRight-rl-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/LeftToRight-tb-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/RightToLeft-bt-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/RightToLeft-lr-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/RightToLeft-rl-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/RightToLeft-tb-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/TopToBottom-bt-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/TopToBottom-lr-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/TopToBottom-rl-expected.txt: Added.
* platform/gtk/fast/multicol/pagination/TopToBottom-tb-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Windows] Unreviewed build fix.

* WTF.vcxproj/WTFGenerated.make: Stop triggering a "Build All" when things have not changed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Rebase after r152814.

Patch by Gabor Abraham <abrhm@inf.u-szeged.hu> on 2013-07-22

* platform/qt-5.0-wk1/http/tests/security/contentSecurityPolicy/object-src-none-allowed-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] captions sometimes positioned incorrectly after fullscreen state change
https://bugs.webkit.org/show_bug.cgi?id=118912

Reviewed by Jer Noble.

* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlTextTrackContainerElement::updateDisplay): Call clearTextTrackRepresentation.
(WebCore::MediaControlTextTrackContainerElement::updateTimerFired): Call updateDisplay so
    cues are re-rendered with the updated size.
(WebCore::MediaControlTextTrackContainerElement::clearTextTrackRepresentation): Cleanup the
    text track representation.
(WebCore::MediaControlTextTrackContainerElement::enteredFullscreen): New, force cues to be updated.
(WebCore::MediaControlTextTrackContainerElement::exitedFullscreen): Ditto.
* html/shadow/MediaControlElements.h:

* html/shadow/MediaControls.cpp:
(WebCore::MediaControls::enteredFullscreen): Call MediaControlTextTrackContainerElement::enteredFullscreen.
(WebCore::MediaControls::exitedFullscreen): Call MediaControlTextTrackContainerElement::exitedFullscreen.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Curl] Download fails for certain urls.
https://bugs.webkit.org/show_bug.cgi?id=118468

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-07-22
Reviewed by Brent Fulgham.

Source/WebCore:

The current Curl download implementation has a few shortcomings:
1) Downloading from secure locations fails. We need to provide Curl with the path to a certificate file (.pem file).
2) Cookies are not set in the download request. We need to give Curl the path to the cookie file.
3) When a normal load is converted to a download, some of the headers from the original request is not sent (e.g. Referer, User agent).

* platform/network/curl/CurlDownload.cpp:
(WebCore::CurlDownload::CurlDownload): Initialize custom headers member.
(WebCore::CurlDownload::~CurlDownload): Free custom headers member.
(WebCore::CurlDownload::init): Set certificate and cookie file path.
(WebCore::CurlDownload::closeFile): Check file handle against value for invalid platform handle.
(WebCore::CurlDownload::writeDataToFile): Added utility method to write download data to file.
(WebCore::CurlDownload::addHeaders): Added utility method to add headers to request.
(WebCore::CurlDownload::didReceiveData): Use writeDataToFile utility method.
* platform/network/curl/CurlDownload.h:
Put class in WebCore namespace.
Added method to init download from resource handle, request, and response object.
Added utility method to write download data to file.
Added utility method to add headers to request.
Added custom headers member.

Source/WebKit/win:

Initialize download from provided resource handle, request, and response object.

* WebDownload.h: Use WebCore namespace for Curl download class.
* WebDownloadCurl.cpp:
(WebDownload::init): Initialize download from provided resource handle, request, and response object.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Unreviewed gardening. Added baselines needed after r110542.

* platform/gtk/fast/forms/label/labelable-elements-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening of AppleWin port. Skip some crashing tests.

* platform/win/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: When right-clicking on a DataGrid column, show editing
menu option as "Edit <columnName>" instead of just "Edit"
https://bugs.webkit.org/show_bug.cgi?id=118970

Patch by Diego Pino Garcia <dpino@igalia.com> on 2013-07-22
Reviewed by Timothy Hatcher.

* Localizations/en.lproj/localizedStrings.js: Add literal "Edit '%s'"
* UserInterface/DataGrid.js: Change "Edit" for "Edit <columnTitle>"
(WebInspector.DataGrid.prototype._contextMenuInDataTable):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Fix WebGL to a 2D canvas copies.
https://bugs.webkit.org/show_bug.cgi?id=118921
https://jira.bbqnx.net/browse/BRWSR-12714
JIRA 449577

Patch by Jakob Petsovits <jpetsovits@blackberry.com> on 2013-07-22
Reviewed by George Staikos.

The transform here was converted incorrectly when it
replaced the pixel copy that was there before.
As a true draw transformation, it doesn't need the "- 1"
modification that pixel copies often require.

Fixes existing webgl/conformance/canvas tests.

* platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
(WebCore::GraphicsContext3D::paintToCanvas):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r152968.
http://trac.webkit.org/changeset/152968
https://bugs.webkit.org/show_bug.cgi?id=118975

"I forgot to add a test" (Requested by abucur on #webkit).

* fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.html: Removed.
* fast/regions/percentage-margins-mixed-ltr-dominant-regions.html:
* fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.html: Removed.
* fast/regions/percentage-margins-mixed-rtl-dominant-regions.html:
* fast/regions/percentage-margins-rtl-variable-width-regions-expected.html: Removed.
* fast/regions/percentage-margins-rtl-variable-width-regions.html:
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Added.
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Added.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Added.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Added.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Added.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Added.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.png: Added.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.txt: Added.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Added.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Added.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Added.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Added.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Added.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Added.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.png: Added.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.txt: Added.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Added.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Added.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Added.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Added.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Added.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Added.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Added.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Added.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Added.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Added.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Added.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Added.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.png: Added.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Added assembly files to Windows 64-bit builds.
https://bugs.webkit.org/show_bug.cgi?id=118931

Reviewed by Brent Fulgham.

Source/JavaScriptCore:

* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj: Added JITStubsMSVC64.asm for x64 and enabled MASM.
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters: Added JITStubsMSVC64.asm.

Source/WebCore:

* WebCore.vcxproj/WebCore.vcxproj: Added PaintHooks.asm for x64 and enabled MASM.
* WebCore.vcxproj/WebCore.vcxproj.filters: Added PaintHooks.asm.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixed WinCairo build configurations.
https://bugs.webkit.org/show_bug.cgi?id=118932

Reviewed by Brent Fulgham.

* WebKit.vcxproj/WebKit.sln:
Made WinCairo not build AssembleBuildLogs (wasn't working, not necessary).
Made Debug_WinCairo build with Debug_WinCairo configuration.
Made 64-bit WinCairo not build QTMovieWin.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Frequent MESSAGE_CHECK failures in WebPageProxy::didReceiveEvent
        https://bugs.webkit.org/show_bug.cgi?id=118976
        <rdar://problem/14155030>

        Reviewed by Sam Weinig.

        * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::resetStateAfterProcessExited):
        Clear m_gestureEventQueue, just like we clear all other event queues here.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Old Web Inspector] When right-clicking on a DataGrid column, show editing menu option as "Edit <columnName>" instead of just "Edit"
https://bugs.webkit.org/show_bug.cgi?id=118971

Patch by Diego Pino Garcia <dpino@igalia.com> on 2013-07-22
Reviewed by Timothy Hatcher.

* English.lproj/localizedStrings.js:
* inspector/front-end/DataGrid.js: Change "Edit" for "Edit <columnTitle>"
(WebInspector.DataGrid.prototype._contextMenuInDataTable):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r152227) Images with compositing layer don't show up unless the containing window is resized.
https://bugs.webkit.org/show_bug.cgi?id=118951

Patch by Zalan Bujtas <zalan@apple.com> on 2013-07-22
Reviewed by Simon Fraser.

Ensure that the content rect is initialized when the image is set on the graphics layer.

RenderLayerBacking::updateGraphicsLayerGeometry() only updates the contents rect when
the associated graphics layer has a content layer. Since the image gets committed
on the graphics layer after the update calls, the contents rect is left uninitialized.

Source/WebCore:

Test: compositing/images/positioned-image-content-rect.html

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateImageContents):

LayoutTests:

* compositing/images/positioned-image-content-rect-expected.html: Added.
* compositing/images/positioned-image-content-rect.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline the caret color test for the Mac port after r152612
https://bugs.webkit.org/show_bug.cgi?id=118961

Reviewed by Alexey Proskuryakov.

Added expected results of the caret color test for the Mac port.

* platform/mac-wk2/editing/caret/caret-color-expected.png: Added.
* platform/mac/TestExpectations:
* platform/mac/editing/caret/caret-color-expected.png: Added.
* platform/mac/editing/caret/caret-color-expected.txt: Added.


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