Title: [206071] releases/WebKitGTK/webkit-2.14/Source/WebKit2
Revision
206071
Author
carlo...@webkit.org
Date
2016-09-17 03:51:30 -0700 (Sat, 17 Sep 2016)

Log Message

Merge r206066 - [ThreadedCompositor] Scrolling artifacts on accelerated subframes
https://bugs.webkit.org/show_bug.cgi?id=149060

Reviewed by Michael Catanzaro.

The problem is that we are scrolling the main frame even when scrolling is not delegated.

* WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
(WebKit::ThreadedCoordinatedLayerTreeHost::scrollNonCompositedContents): Return early if main frame view doesn't
delegate scrolling.

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.14/Source/WebKit2/ChangeLog (206070 => 206071)


--- releases/WebKitGTK/webkit-2.14/Source/WebKit2/ChangeLog	2016-09-17 10:50:07 UTC (rev 206070)
+++ releases/WebKitGTK/webkit-2.14/Source/WebKit2/ChangeLog	2016-09-17 10:51:30 UTC (rev 206071)
@@ -1,3 +1,16 @@
+2016-09-17  Carlos Garcia Campos  <cgar...@igalia.com>
+
+        [ThreadedCompositor] Scrolling artifacts on accelerated subframes
+        https://bugs.webkit.org/show_bug.cgi?id=149060
+
+        Reviewed by Michael Catanzaro.
+
+        The problem is that we are scrolling the main frame even when scrolling is not delegated.
+
+        * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
+        (WebKit::ThreadedCoordinatedLayerTreeHost::scrollNonCompositedContents): Return early if main frame view doesn't
+        delegate scrolling.
+
 2016-09-15  Gustavo Noronha Silva  <gustavo.noro...@collabora.co.uk>
 
         [GTK] Surface created for glReadPixels path on Wayland is bigger than needed

Modified: releases/WebKitGTK/webkit-2.14/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp (206070 => 206071)


--- releases/WebKitGTK/webkit-2.14/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp	2016-09-17 10:50:07 UTC (rev 206070)
+++ releases/WebKitGTK/webkit-2.14/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp	2016-09-17 10:51:30 UTC (rev 206071)
@@ -79,6 +79,10 @@
 
 void ThreadedCoordinatedLayerTreeHost::scrollNonCompositedContents(const IntRect& rect)
 {
+    FrameView* frameView = m_webPage.mainFrameView();
+    if (!frameView || !frameView->delegatesScrolling())
+        return;
+
     m_viewportController.didScroll(rect.location());
     didChangeViewport();
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to