Make RenderLayer::handleTouchEvent use usesAcceleratedScrolling()
authorfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 19:13:41 +0000 (19:13 +0000)
committerfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 19:13:41 +0000 (19:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173763

Patch by Frederic Wang <fwang@igalia.com> on 2017-06-23
Reviewed by Simon Fraser.

No new tests, behavior is unchanged.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::handleTouchEvent): Call usesAcceleratedScrolling() instead of
hasTouchScrollableOverflow() for clarity.

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayer.cpp

index 375afe0..b6372b6 100644 (file)
@@ -1,3 +1,16 @@
+2017-06-23  Frederic Wang  <fwang@igalia.com>
+
+        Make RenderLayer::handleTouchEvent use usesAcceleratedScrolling()
+        https://bugs.webkit.org/show_bug.cgi?id=173763
+
+        Reviewed by Simon Fraser.
+
+        No new tests, behavior is unchanged.
+
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::handleTouchEvent): Call usesAcceleratedScrolling() instead of
+        hasTouchScrollableOverflow() for clarity.
+
 2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
 
         Remove excessive headers from WebCore/{bindings,css,dom}
index 9d60301..7a0ebaa 100644 (file)
@@ -2180,7 +2180,7 @@ bool RenderLayer::hasTouchScrollableOverflow() const
 bool RenderLayer::handleTouchEvent(const PlatformTouchEvent& touchEvent)
 {
     // If we have accelerated scrolling, let the scrolling be handled outside of WebKit.
-    if (hasTouchScrollableOverflow())
+    if (usesAcceleratedScrolling())
         return false;
 
     return ScrollableArea::handleTouchEvent(touchEvent);