Disable -webkit-overflow-scrolling CSS attribute on Chromium
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 14:45:41 +0000 (14:45 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 14:45:41 +0000 (14:45 +0000)
commite8e7cf6c2c1350bd55b5f3190681bccde22e40cd
tree6cb7884c8b529b4ac92f515bbe19eb9d6ae9266e
parent27e8556a6c897f1c21eee3a5995a54c527a5d239
Disable -webkit-overflow-scrolling CSS attribute on Chromium
https://bugs.webkit.org/show_bug.cgi?id=108020

Patch by Sami Kyostila <skyostil@chromium.org> on 2013-02-04
Reviewed by James Robinson.

Now that we can automatically promote overflow elements to accelerated
scrolling layers there is no use for the -webkit-overflow-scrolling CSS
attribute any longer on Chromium.

Source/WebKit/chromium:

This patch enables composited overflow scrolling in
ScrollingCoordinatorChromiumTest. Because this also causes the overflow div
in non-fast-scrollable.html to become composited, we also need to modify that
test to opt it out of composited scrolling.

* features.gypi:
* tests/ScrollingCoordinatorChromiumTest.cpp:
(WebKit::ScrollingCoordinatorChromiumTest::ScrollingCoordinatorChromiumTest):
(WebKit::TEST_F):
* tests/data/non-fast-scrollable.html:
* tests/data/overflow-scrolling.html: Renamed from Source/WebKit/chromium/tests/data/touch-overflow-scrolling.html.

LayoutTests:

The following tests using -webkit-overflow-scroll are modified to also call
setAcceleratedCompositingForOverflowScrollEnabled(). This makes them test
meaningful things on also on platforms that do not support that CSS attribute.

* compositing/overflow/clipping-ancestor-with-accelerated-scrolling-ancestor.html:
* compositing/overflow/iframe-inside-overflow-clipping.html:
* compositing/overflow/nested-scrolling.html:
* compositing/overflow/overflow-clip-with-accelerated-scrolling-ancestor.html:
* compositing/overflow/scrolling-content-clip-to-viewport.html:
* compositing/overflow/scrolling-without-painting.html:
* compositing/overflow/textarea-scroll-touch.html:
* compositing/overflow/updating-scrolling-content.html:
* platform/chromium-android/compositing/layer-creation/overflow-scrolling-touch-expected.txt: Removed.
* platform/chromium-android/compositing/layer-creation/overflow-scrolling-touch.html: Removed.
* platform/chromium-linux/compositing/overflow/nested-scrolling-expected.png:
* platform/chromium/TestExpectations:
* platform/chromium/compositing/overflow/overflow-auto-with-touch-toggle-expected.txt: Removed.
* platform/chromium/compositing/overflow/overflow-scrolling-touch-stacking-context-expected.png: Removed.
* platform/chromium/compositing/overflow/overflow-scrolling-touch-stacking-context-expected.txt: Removed.
* platform/chromium/compositing/overflow/overflow-scrolling-touch-stacking-context.html: Removed.
* platform/chromium/platform/chromium/virtual/gpu/compositedscrolling/overflow/overflow-auto-with-touch-toggle-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
LayoutTests/ChangeLog
LayoutTests/compositing/overflow/clipping-ancestor-with-accelerated-scrolling-ancestor.html
LayoutTests/compositing/overflow/iframe-inside-overflow-clipping.html
LayoutTests/compositing/overflow/nested-scrolling.html
LayoutTests/compositing/overflow/overflow-clip-with-accelerated-scrolling-ancestor.html
LayoutTests/compositing/overflow/scrolling-content-clip-to-viewport.html
LayoutTests/compositing/overflow/scrolling-without-painting.html
LayoutTests/compositing/overflow/textarea-scroll-touch.html
LayoutTests/compositing/overflow/updating-scrolling-content.html
LayoutTests/platform/chromium-android/compositing/layer-creation/overflow-scrolling-touch-expected.txt [deleted file]
LayoutTests/platform/chromium-android/compositing/layer-creation/overflow-scrolling-touch.html [deleted file]
LayoutTests/platform/chromium-linux/compositing/overflow/nested-scrolling-expected.png
LayoutTests/platform/chromium/TestExpectations
LayoutTests/platform/chromium/compositing/overflow/overflow-auto-with-touch-toggle-expected.txt [deleted file]
LayoutTests/platform/chromium/compositing/overflow/overflow-scrolling-touch-stacking-context-expected.png [deleted file]
LayoutTests/platform/chromium/compositing/overflow/overflow-scrolling-touch-stacking-context-expected.txt [deleted file]
LayoutTests/platform/chromium/compositing/overflow/overflow-scrolling-touch-stacking-context.html [deleted file]
LayoutTests/platform/chromium/platform/chromium/virtual/gpu/compositedscrolling/overflow/overflow-auto-with-touch-toggle-expected.txt [deleted file]
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/features.gypi
Source/WebKit/chromium/tests/ScrollingCoordinatorChromiumTest.cpp
Source/WebKit/chromium/tests/data/non-fast-scrollable.html
Source/WebKit/chromium/tests/data/overflow-scrolling.html [moved from Source/WebKit/chromium/tests/data/touch-overflow-scrolling.html with 88% similarity]