Convert fast/innerHTML from pixel to ref tests
https://bugs.webkit.org/show_bug.cgi?id=99875

Reviewed by Dirk Pranke.

* fast/innerHTML/001-expected.html: Added.
* fast/innerHTML/002-expected.html: Added.
* fast/innerHTML/003-expected.html: Added.
* fast/innerHTML/006-expected.html: Added.
* platform/chromium-linux/fast/innerHTML/001-expected.png: Removed.
* platform/chromium-linux/fast/innerHTML/002-expected.png: Removed.
* platform/chromium-linux/fast/innerHTML/003-expected.png: Removed.
* platform/chromium-linux/fast/innerHTML/006-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/innerHTML/001-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/innerHTML/002-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/innerHTML/003-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/innerHTML/006-expected.png: Removed.
* platform/chromium-mac/fast/innerHTML/001-expected.png: Removed.
* platform/chromium-mac/fast/innerHTML/002-expected.png: Removed.
* platform/chromium-mac/fast/innerHTML/003-expected.png: Removed.
* platform/chromium-mac/fast/innerHTML/006-expected.png: Removed.
* platform/chromium-win/fast/innerHTML/001-expected.png: Removed.
* platform/chromium-win/fast/innerHTML/001-expected.txt: Removed.
* platform/chromium-win/fast/innerHTML/002-expected.png: Removed.
* platform/chromium-win/fast/innerHTML/002-expected.txt: Removed.
* platform/chromium-win/fast/innerHTML/003-expected.png: Removed.
* platform/chromium-win/fast/innerHTML/003-expected.txt: Removed.
* platform/chromium-win/fast/innerHTML/006-expected.png: Removed.
* platform/chromium-win/fast/innerHTML/006-expected.txt: Removed.
* platform/chromium/fast/innerHTML/001-expected.txt: Removed.
* platform/chromium/fast/innerHTML/002-expected.txt: Removed.
* platform/chromium/fast/innerHTML/003-expected.txt: Removed.
* platform/chromium/fast/innerHTML/006-expected.txt: Removed.
* platform/efl/fast/innerHTML/001-expected.png: Removed.
* platform/efl/fast/innerHTML/001-expected.txt: Removed.
* platform/efl/fast/innerHTML/002-expected.png: Removed.
* platform/efl/fast/innerHTML/002-expected.txt: Removed.
* platform/efl/fast/innerHTML/003-expected.png: Removed.
* platform/efl/fast/innerHTML/003-expected.txt: Removed.
* platform/efl/fast/innerHTML/006-expected.png: Removed.
* platform/efl/fast/innerHTML/006-expected.txt: Removed.
* platform/gtk/fast/innerHTML/001-expected.png: Removed.
* platform/gtk/fast/innerHTML/001-expected.txt: Removed.
* platform/gtk/fast/innerHTML/002-expected.png: Removed.
* platform/gtk/fast/innerHTML/002-expected.txt: Removed.
* platform/gtk/fast/innerHTML/003-expected.png: Removed.
* platform/gtk/fast/innerHTML/003-expected.txt: Removed.
* platform/gtk/fast/innerHTML/006-expected.png: Removed.
* platform/gtk/fast/innerHTML/006-expected.txt: Removed.
* platform/mac/fast/innerHTML/001-expected.png: Removed.
* platform/mac/fast/innerHTML/001-expected.txt: Removed.
* platform/mac/fast/innerHTML/002-expected.png: Removed.
* platform/mac/fast/innerHTML/002-expected.txt: Removed.
* platform/mac/fast/innerHTML/003-expected.png: Removed.
* platform/mac/fast/innerHTML/003-expected.txt: Removed.
* platform/mac/fast/innerHTML/006-expected.png: Removed.
* platform/mac/fast/innerHTML/006-expected.txt: Removed.
* platform/qt/fast/innerHTML/001-expected.png: Removed.
* platform/qt/fast/innerHTML/001-expected.txt: Removed.
* platform/qt/fast/innerHTML/002-expected.png: Removed.
* platform/qt/fast/innerHTML/002-expected.txt: Removed.
* platform/qt/fast/innerHTML/003-expected.png: Removed.
* platform/qt/fast/innerHTML/003-expected.txt: Removed.
* platform/qt/fast/innerHTML/006-expected.png: Removed.
* platform/qt/fast/innerHTML/006-expected.txt: Removed.


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

* platform/chromium-linux/platform/chromium/virtual/deferred: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/chromium-mac-lion/platform/chromium/virtual/deferred/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/chromium-mac-snowleopard/platform/chromium/virtual/deferred/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r131944.
http://trac.webkit.org/changeset/131944
https://bugs.webkit.org/show_bug.cgi?id=99891

On second thoughts, not such a great idea (Requested by jamesr
on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-19

Source/Platform:

* chromium/public/WebCompositorSupport.h:
(WebCompositorSupport):

Source/WebKit/chromium:

* public/WebView.h:
(WebKit):
(WebView):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::WebViewImpl):
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
(WebKit):
* src/WebViewImpl.h:
(WebViewImpl):
* tests/GraphicsLayerChromiumTest.cpp:
(WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):

Tools:

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::createNewWindow):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebProcess should only connect to the NetworkProcess if NetworkProcess is enabled
https://bugs.webkit.org/show_bug.cgi?id=99885

Reviewed by Alexey Proskuryakov.

WebContext should tell each WebProcess it creates whether NetworkProcess use is enabled.

Add a WebProcess initialization flag for whether or not NetworkProcess use is enabled:
* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
(WebKit::WebProcessCreationParameters::encode):
(WebKit::WebProcessCreationParameters::decode):
* Shared/WebProcessCreationParameters.h:
(WebProcessCreationParameters):

Include that info in the initialization parameters:
* UIProcess/WebContext.cpp:
(WebKit::WebContext::createNewWebProcess):

Store whether or not NetworkProcess use is enabled, and only connect to the NetworkProcess if appropriate:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::WebProcess):
(WebKit::WebProcess::initializeWebProcess):
(WebKit::WebProcess::ensureNetworkProcessConnection):
* WebProcess/WebProcess.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Fix a hang when combining tile cache layers with preserve-3d or reflections
https://bugs.webkit.org/show_bug.cgi?id=99890
<rdar://problem/12539560>

Reviewed by Dean Jackson.

The new tile cache code added an updateSublayers() call when switching to/from
tiled layers. This confused later sublayer rebuilding, causing us to attempt to
add a layer as a child of itself, causing a hang in CA.

Fix by removing all the explicit calls to updateFoo when updating the structural
layer and switching to/from tiled layers. Instead, we set dirty flags, and rely
on the fact that these flag-dirtying functions get called before the later functions
that process those dirty flags. This is assured by some reordering of the update
function calls.

A final wrinkle is that ensureStructuralLayer() can change the layer that our
parent GraphicsLayer put in its sublayer list. Rather than diddle with that sublayer
list directly like we used to, just call noteSublayersChanged() on the parent, and have
commitLayerChangesAfterSublayers() check the ChildrenChanged and do a second update
of sublayers if necessary (we clear the flag in commitLayerChangesBeforeSublayers(), so
only do this work if a sublayer requested it).

Tests: compositing/tiling/preserve3d-tiled.html
       compositing/tiling/reflected-tiled.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
(WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers):
(WebCore::GraphicsLayerCA::ensureStructuralLayer):
(WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(PlatformCALayer::appendSublayer): Add assertion about adding a layer to itself.
(PlatformCALayer::insertSublayer): Ditto.
(PlatformCALayer::replaceSublayer): Ditto.

LayoutTests: Fix a hang when combining tile cache layers with preserve-3d or reflections
https://bugs.webkit.org/show_bug.cgi?id=99890

Reviewed by Dean Jackson.

Tests that combine tiled layers with preserve-3d and reflections.

* compositing/tiling/preserve3d-tiled-expected.txt: Added.
* compositing/tiling/preserve3d-tiled.html: Added.
* compositing/tiling/reflected-tiled-expected.txt: Added.
* compositing/tiling/reflected-tiled.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Double-tap defaults to zoom (should only do this on Android)
https://bugs.webkit.org/show_bug.cgi?id=99600

Patch by Yusuf Ozuysal <yusufo@google.com> on 2012-10-19
Reviewed by Adam Barth.

Adds a web setting for enabling DoubleTapToZoom on a doubleTap gesture.
This gesture was just needed for mobile, and the patch that implemented it caused regressions on other platforms.

* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::WebSettingsImpl):
(WebKit::WebSettingsImpl::setDoubleTapToZoomEnabled):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):
(WebKit::WebSettingsImpl::doubleTapToZoomEnabled):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):
* tests/WebFrameTest.cpp:

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