[Qt] Enable touch slider when touch events are enabled
https://bugs.webkit.org/show_bug.cgi?id=91013

Reviewed by Antonio Gomes.

Take advantage of the logic introduced in r122286.

* Target.pri:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Chrome/Skia: PDF print output does not have clickable links.
https://bugs.webkit.org/show_bug.cgi?id=91171

Patch by Steve VanDeBogart <vandebo@chromium.org> on 2012-07-23
Reviewed by Stephen White.

Connect GraphicsContext::setURLForRect to Skia's new API for annotations.

Printing is not generally testable.

* platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContext::setURLForRect):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] animations needs rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=91997

Patch by Luciano Wolf <luciano.wolf@openbossa.org> on 2012-07-23
Reviewed by Noam Rosenthal.

Updating skipped tests inside animations directory.

* platform/qt-5.0/Skipped:
* platform/qt/animations/3d/change-transform-in-end-event-expected.txt: Added.
* platform/qt/animations/3d/state-at-end-event-transform-expected.txt:
* platform/qt/animations/additive-transform-animations-expected.txt:
* platform/qt/animations/cross-fade-background-image-expected.txt:
* platform/qt/animations/cross-fade-border-image-source-expected.txt:
* platform/qt/animations/cross-fade-list-style-image-expected.txt:
* platform/qt/animations/cross-fade-webkit-mask-box-image-expected.txt:
* platform/qt/animations/cross-fade-webkit-mask-image-expected.txt:
* platform/qt/animations/missing-values-first-keyframe-expected.txt:
* platform/qt/animations/missing-values-last-keyframe-expected.txt:
* platform/qt/animations/state-at-end-event-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r123281): childNodes sometimes returns wrong nodes
https://bugs.webkit.org/show_bug.cgi?id=92014

Reviewed by Anders Carlsson.

Source/WebCore: 

The bug was caused by a typo in itemBeforeOrAfter. Namely, it should have been calling firstNode as
firstNode(forward, rootNode(), shouldOnlyIncludeDirectChildren()),
NOT firstNode(forward, rootNode(), previous)
as evident from the argument list of the function.

Test: fast/dom/NodeList/childNodes-reverse-iteration.html

* html/HTMLCollection.cpp:
(WebCore::DynamicNodeListCacheBase::itemBeforeOrAfter):

LayoutTests: 

Added an integration regression test that caught this bug.

* fast/dom/NodeList/childNodes-reverse-iteration-expected.txt: Added.
* fast/dom/NodeList/childNodes-reverse-iteration.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
nrwt: never finds binaries in the 'out' dir on chromium win
https://bugs.webkit.org/show_bug.cgi?id=91890

Reviewed by Tony Chang.

We were figuring out which directory look in for binaries by
testing for the base directory (the directory above
Debug/Release). In chromium-win's case, we look in src/build,
which always exists because there are checked-in files in it,
which means we'd always pick that directory over src/out. All of
the other ports' build_path() implementation was including
Debug/Release. If we matched that, we wouldn't have a problem,
so this change fixes that and updates all of the callers of the
chromium ports' implementation to not pass configuration as part
of the path to look up; we still need to pass configuration in
some cases (to test if the build is out of date between debug
and release) so the implementation gets slightly more
complicated.

* Scripts/webkitpy/layout_tests/port/chromium.py:
(ChromiumPort._static_build_path):
(ChromiumPort.default_results_directory):
(ChromiumPort._build_path):
(ChromiumPort._path_to_image_diff):
* Scripts/webkitpy/layout_tests/port/chromium_android.py:
(ChromiumAndroidPort._build_path):
(ChromiumAndroidPort._path_to_driver):
(ChromiumAndroidPort._path_to_forwarder):
(ChromiumAndroidPort._push_executable):
(ChromiumAndroidPort._push_fonts):
* Scripts/webkitpy/layout_tests/port/chromium_linux.py:
(ChromiumLinuxPort._determine_driver_path_statically):
(ChromiumLinuxPort._modules_to_search_for_symbols):
(ChromiumLinuxPort._path_to_driver):
* Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py:
(ChromiumLinuxPortTest.test_build_path):
* Scripts/webkitpy/layout_tests/port/chromium_mac.py:
(ChromiumMacPort._modules_to_search_for_symbols):
(ChromiumMacPort._path_to_driver):
(ChromiumMacPort._path_to_helper):
* Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py:
(ChromiumMacPortTest.test_build_path):
* Scripts/webkitpy/layout_tests/port/chromium_win.py:
(ChromiumWinPort._path_to_driver):
(ChromiumWinPort._path_to_helper):
(ChromiumWinPort._path_to_image_diff):
* Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:
(ChromiumWinTest.test_build_path):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add WebTextInputType enum values for text areas and
content-editable.
https://bugs.webkit.org/show_bug.cgi?id=91654

Reviewed by Adam Barth.

No new tests, no behavior change without corresponding chromium.org changes.

* public/WebTextInputType.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::textInputType):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] tables/mozilla_expected_failures/bugs rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92017

Reviewed by Alexis Menard.

* platform/gtk/tables/mozilla_expected_failures/bugs/bug128876-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug23847-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug23847-expected.txt: Copied from LayoutTests/platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.txt.
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-6-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-9-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug85016-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug85016-expected.txt:
* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt/tables/mozilla_expected_failures/bugs/bug128876-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.txt:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-6-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-9-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium expectations change to mark inline-plaintext-relayout-with-leading-neutrals.html flaky.
https://bugs.webkit.org/show_bug.cgi?id=92019

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r123362.
http://trac.webkit.org/changeset/123362
https://bugs.webkit.org/show_bug.cgi?id=92020

uploaded wrong expectations :( bad caio (Requested by cmarcelo
on #webkit).

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

* platform/gtk/tables/mozilla_expected_failures/bugs/bug128876-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug23847-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug23847-expected.txt: Removed.
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-6-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3166-9-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug85016-expected.png:
* platform/gtk/tables/mozilla_expected_failures/bugs/bug85016-expected.txt:
* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt/tables/mozilla_expected_failures/bugs/bug128876-expected.png: Removed.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.png: Removed.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.txt:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-6-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-9-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium expectations change to ignore DEBUG failures for policy-ignore-crash.php.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] svg/zoom needs update after new testfonts
https://bugs.webkit.org/show_bug.cgi?id=92007

Reviewed by Alexis Menard.

* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt-5.0/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png: Removed.
* platform/qt-5.0/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt: Removed.
* platform/qt/Skipped:
* platform/qt/svg/zoom/page/absolute-sized-document-no-scrollbars-expected.png: Added.
* platform/qt/svg/zoom/page/absolute-sized-document-scrollbars-expected.png: Added.
* platform/qt/svg/zoom/page/zoom-background-image-tiled-expected.txt: Added.
* platform/qt/svg/zoom/page/zoom-background-images-expected.png:
* platform/qt/svg/zoom/page/zoom-background-images-expected.txt:
* platform/qt/svg/zoom/page/zoom-foreign-content-expected.txt: Added.
* platform/qt/svg/zoom/page/zoom-foreignObject-expected.png:
* platform/qt/svg/zoom/page/zoom-foreignObject-expected.txt:
* platform/qt/svg/zoom/page/zoom-hixie-mixed-008-expected.png:
* platform/qt/svg/zoom/page/zoom-hixie-mixed-008-expected.txt:
* platform/qt/svg/zoom/page/zoom-hixie-rendering-model-004-expected.png:
* platform/qt/svg/zoom/page/zoom-hixie-rendering-model-004-expected.txt:
* platform/qt/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png:
* platform/qt/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt:
* platform/qt/svg/zoom/page/zoom-mask-with-percentages-expected.png:
* platform/qt/svg/zoom/page/zoom-mask-with-percentages-expected.txt:
* platform/qt/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.png:
* platform/qt/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-as-background-with-relative-size-and-viewBox-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-float-border-padding-expected.png: Added.
* platform/qt/svg/zoom/page/zoom-svg-float-border-padding-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-huge-size-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-huge-size-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-override-size-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-override-size-expected.txt:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt:
* platform/qt/svg/zoom/text/absolute-sized-document-no-scrollbars-expected.png: Added.
* platform/qt/svg/zoom/text/absolute-sized-document-scrollbars-expected.png: Added.
* platform/qt/svg/zoom/text/relative-sized-document-scrollbars-expected.png: Added.
* platform/qt/svg/zoom/text/zoom-foreignObject-expected.png:
* platform/qt/svg/zoom/text/zoom-foreignObject-expected.txt:
* platform/qt/svg/zoom/text/zoom-hixie-mixed-008-expected.png:
* platform/qt/svg/zoom/text/zoom-hixie-mixed-008-expected.txt:
* platform/qt/svg/zoom/text/zoom-hixie-mixed-009-expected.png:
* platform/qt/svg/zoom/text/zoom-hixie-mixed-009-expected.txt:
* platform/qt/svg/zoom/text/zoom-hixie-rendering-model-004-expected.png:
* platform/qt/svg/zoom/text/zoom-hixie-rendering-model-004-expected.txt:
* platform/qt/svg/zoom/text/zoom-svg-float-border-padding-expected.png:
* platform/qt/svg/zoom/text/zoom-svg-float-border-padding-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] tables/mozilla_expected_failures/bugs rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92017

Reviewed by Alexis Menard.

* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt/tables/mozilla_expected_failures/bugs/bug128876-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.txt:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-6-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-9-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] tables/mozilla_expected_failures/bugs rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92017

Patch by Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> on 2012-07-23
Reviewed by Alexis Menard.

* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt/tables/mozilla_expected_failures/bugs/bug128876-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.txt:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-6-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-7-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-8-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug3166-9-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug80762-2-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.png:
* platform/qt/tables/mozilla_expected_failures/bugs/bug85016-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMAKE] Added missing RenderLayerFilterInfo.cpp to build system.

* CMakeLists.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Fix build on Ubuntu Precise.
https://bugs.webkit.org/show_bug.cgi?id=92021

Reviewed by Adrienne Walker.

Remove an array that's written but never read.

* tests/CCResourceProviderTest.cpp:
(WebKit::TEST_F):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix if NOMINMAX is defined by the build system.

* COMEnumVariant.h: Added #ifndef NOMINMAX around #define NOMINMAX.
* COMPropertyBag.h: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Add unit tests for Ewk_Cookie_Manager
https://bugs.webkit.org/show_bug.cgi?id=91639

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-23
Reviewed by Antonio Gomes.

Add unit tests for Ewk_Cookie_Manager.

* PlatformEfl.cmake:
* UIProcess/API/efl/ewk_cookie_manager.h: Fix "accept policy" documentation
to indicate that only cookies set by the main document are accepted by default.
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp: Added.
(EWK2UnitTestServer::EWK2UnitTestServer): Add HTTP server similar to the one
used by GTK port unit tests.
(EWK2UnitTestServer::~EWK2UnitTestServer):
(EWK2UnitTestServer::run):
(EWK2UnitTestServer::getURIForPath):
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.h: Added.
(EWK2UnitTestServer):
(EWK2UnitTestServer::baseURI):
* UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp: Added.
(serverCallback):
(getAcceptPolicyCallback):
(getAcceptPolicy):
(getHostnamesWithCookiesCallback):
(getHostnamesWithCookies):
(freeHostNames):
(countHostnamesWithCookies):
(TEST_F):
(cleanUpCookieFiles):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] tables/mozilla_expected_failures rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92013

Unreviewed.

* platform/qt-5.0/Skipped:
* platform/qt/tables/mozilla_expected_failures/marvin/table_overflow_td_align_right-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] WebKitTestRunner needs to print information about Web intents
https://bugs.webkit.org/show_bug.cgi?id=90873

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-23
Reviewed by Anders Carlsson.

Source/WebKit2:

Add Bundle API for Web Intents. This is needed by the WebKitTestRunner
to print information about the new intent requests and the intent
service registrations.

* CMakeLists.txt: Move WebIntentData and WebIntentServiceInfo from
UIProcess/ to Shared/.
* GNUmakefile.list.am: Move WebIntentData and WebIntentServiceInfo from
UIProcess/ to Shared/.
* Shared/APIClientTraits.h:
* Shared/WebIntentData.cpp: Renamed from Source/WebKit2/UIProcess/WebIntentData.cpp.
(WebKit):
(WebKit::WebIntentData::WebIntentData):
(WebKit::WebIntentData::data):
(WebKit::WebIntentData::suggestions):
(WebKit::WebIntentData::extra):
(WebKit::WebIntentData::extras):
* Shared/WebIntentData.h: Renamed from Source/WebKit2/UIProcess/WebIntentData.h.
(WebKit):
(WebIntentData):
(WebKit::WebIntentData::create):
(WebKit::WebIntentData::~WebIntentData):
(WebKit::WebIntentData::action):
(WebKit::WebIntentData::payloadType):
(WebKit::WebIntentData::service):
(WebKit::WebIntentData::store):
(WebKit::WebIntentData::type):
* Shared/WebIntentServiceInfo.cpp: Renamed from Source/WebKit2/UIProcess/WebIntentServiceInfo.cpp.
(WebKit):
(WebKit::WebIntentServiceInfo::WebIntentServiceInfo):
* Shared/WebIntentServiceInfo.h: Renamed from Source/WebKit2/UIProcess/WebIntentServiceInfo.h.
(WebKit):
(WebIntentServiceInfo):
(WebKit::WebIntentServiceInfo::create):
(WebKit::WebIntentServiceInfo::~WebIntentServiceInfo):
(WebKit::WebIntentServiceInfo::action):
(WebKit::WebIntentServiceInfo::payloadType):
(WebKit::WebIntentServiceInfo::href):
(WebKit::WebIntentServiceInfo::title):
(WebKit::WebIntentServiceInfo::disposition):
(WebKit::WebIntentServiceInfo::type):
* Target.pri: Move WebIntentData and WebIntentServiceInfo from
UIProcess/ to Shared/.
* UIProcess/API/C/WKPage.h:
* UIProcess/API/efl/ewk_view_loader_client.cpp:
(didReceiveIntentForFrame):
(registerIntentServiceForFrame):
* UIProcess/WebLoaderClient.cpp:
(WebKit::WebLoaderClient::didReceiveIntentForFrame):
(WebKit::WebLoaderClient::registerIntentServiceForFrame):
* UIProcess/WebLoaderClient.h:
(WebLoaderClient):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::registerIntentServiceForFrame):
(WebKit::WebPageProxy::didReceiveIntentForFrame):
* UIProcess/WebPageProxy.h:
(WebPageProxy):
* UIProcess/WebPageProxy.messages.in:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
(WebKit):
(WebKit::InjectedBundlePageLoaderClient::didReceiveIntentForFrame):
(WebKit::InjectedBundlePageLoaderClient::registerIntentServiceForFrame):
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
(WebKit):
(InjectedBundlePageLoaderClient):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchIntent):
(WebKit::WebFrameLoaderClient::registerIntentService):
* WebProcess/qt/QtBuiltinBundlePage.cpp:
(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):

Tools:

Print out information about new intents requests and intent
services registrations in WebKitTestRunner. This is expected
by tests under webintents/*.

* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::InjectedBundlePage):
(WTR::InjectedBundlePage::didReceiveIntentForFrame):
(WTR):
(WTR::InjectedBundlePage::registerIntentServiceForFrame):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
(InjectedBundlePage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Refactor CCLayerTreeHostCommon: clean up clipRect and drawableContentRect design
https://bugs.webkit.org/show_bug.cgi?id=80622

Reviewed by Adrienne Walker.

Source/WebCore:

clipRect(), usesLayerClipping(), and drawableContentRect() have been
very confusing in CCLayerTreeHostCommon for a while. This patch
refactors it so that (1) clipping is only done locally in
calcDrawTransforms, and (2) the layer's drawableContentRect value
is now meaningful value outside of calcDrawTransforms.
Additionally, the layer is now always clipped to the root
surface's contentBounds (which are set to the viewport bounds).
This refactor not only makes calcDrawTransforms far more readable and intuitive, but
this patch enables more upcoming beneficial refactors, including
the pending refactor in https://bugs.webkit.org/show_bug.cgi?id=88953.

Tests are also significantly updated to keep up with this refactoring change.

* platform/graphics/chromium/LayerChromium.cpp:
(WebCore::LayerChromium::LayerChromium):
* platform/graphics/chromium/LayerChromium.h:
(LayerChromium):
Removed m_usesLayerClipping and m_clipRect and associated accessors.

* platform/graphics/chromium/RenderSurfaceChromium.h:
(RenderSurfaceChromium):
Updated comment

* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::CCLayerImpl):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(CCLayerImpl):
Removed m_usesLayerClipping and m_clipRect and associated accessors.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::updateLayers):
removed setClipRect code that no longer applies

* platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
(WebCore::calculateLayerScissorRect):
scissor rect is now a little bit tighter, the intersection between damage and layer's new drawableContentRect.

(WebCore::calculateSurfaceScissorRect):
scissor rect is now a little bit tighter, except when filters are involved.

(WebCore::layerClipsSubtree):
new helper function

(WebCore):
(WebCore::calculateVisibleContentRect):
(WebCore::subtreeShouldRenderToSeparateSurface):
(WebCore::calculateDrawTransformsInternal):
   - added drawableContentRectOfSubtree to the function args, it is valid only after recursion returns,
   - added clipRectFromAncestor and bool ancestorClipsSubtree to function args, this replaces the layer's clipRect and usesLayerClipping.
   - removed the boolean return value, which was redundant with drawableContentRectOfSubtree.
   - replaced all the "setDrawableContentRect" logic with more intuitive, clear logic.
   - now, layer's drawableContentRect represents the clipped bounds of the layer expressed in the target surface space.

(WebCore::CCLayerTreeHostCommon::calculateDrawTransforms):
(WebCore::pointIsClippedBySurfaceOrClipRect):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::calculateRenderSurfaceLayerList):
* platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
(WebCore::::layerScissorRectInTargetSurface):
Updated this accessor.  It could be removed in the future, but not appropriate for this patch.

* platform/graphics/chromium/cc/CCRenderSurface.h:

Source/WebKit/chromium:

Many tests needed to be updated because the semantics of the layer tree have changed:
  - a few tests that were no longer applicable were removed.
  - many tests needed to have fixed initialization, properly
    setting surface contentRect and rootLayer bounds.
  - because clipRect and usesLayerClipping no longer exists, those places in code had to be removed/changed
  - the scissorRect tests needed to have updated expectations
    because after this patch, the rootLayer Surface now clips
    to its contentBounds.
  - the clipRect tests were changed to test the layer's new semantics for the drawableContentRect instead.

* tests/CCLayerImplTest.cpp:
(WebCore::TEST):
* tests/CCLayerIteratorTest.cpp:
* tests/CCLayerTreeHostCommonTest.cpp:
* tests/CCLayerTreeHostImplTest.cpp:
* tests/CCLayerTreeHostTest.cpp:
* tests/CCOcclusionTrackerTest.cpp:
(WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
(WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
(WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
* tests/LayerChromiumTest.cpp:


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