REGRESSION(r242624): [GTK] New rAF code path assumes AC mode
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Mar 2019 18:13:29 +0000 (18:13 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Mar 2019 18:13:29 +0000 (18:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195459

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-03-08
Reviewed by Žan Doberšek.

* WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
(WebKit::DrawingAreaCoordinatedGraphics::scheduleCompositingLayerFlush):
The refresh monitor now calls scheduleLayerFlush() but when AC
mode is disabled this method does nothing, so setNeedsDisplay()
needs to be called instead.

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

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp

index ff26c36..d194a9e 100644 (file)
@@ -1,3 +1,16 @@
+2019-03-08  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        REGRESSION(r242624): [GTK] New rAF code path assumes AC mode
+        https://bugs.webkit.org/show_bug.cgi?id=195459
+
+        Reviewed by Žan Doberšek.
+
+        * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
+        (WebKit::DrawingAreaCoordinatedGraphics::scheduleCompositingLayerFlush):
+        The refresh monitor now calls scheduleLayerFlush() but when AC
+        mode is disabled this method does nothing, so setNeedsDisplay()
+        needs to be called instead.
+
 2019-03-07  Tim Horton  <timothy_horton@apple.com>
 
         Crash under RemoteLayerTreePropertyApplier::applyProperties
index 3544358..762ba81 100644 (file)
@@ -303,6 +303,8 @@ void DrawingAreaCoordinatedGraphics::scheduleCompositingLayerFlush()
 {
     if (m_layerTreeHost)
         m_layerTreeHost->scheduleLayerFlush();
+    else
+        setNeedsDisplay();
 }
 
 void DrawingAreaCoordinatedGraphics::layerHostDidFlushLayers()