[CoordinatedGraphics] The compositing loop is still running even after exiting AC...
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / CoordinatedGraphics / DrawingAreaCoordinatedGraphics.cpp
index 8c2a7e5..c97e253 100644 (file)
@@ -175,6 +175,9 @@ void DrawingAreaCoordinatedGraphics::forceRepaint()
         return;
     }
 
+    if (m_layerTreeStateIsFrozen)
+        return;
+
     setNeedsDisplay();
     m_webPage.layoutIfNeeded();
     if (!m_layerTreeHost)
@@ -195,6 +198,9 @@ void DrawingAreaCoordinatedGraphics::forceRepaint()
 
 bool DrawingAreaCoordinatedGraphics::forceRepaintAsync(CallbackID callbackID)
 {
+    if (m_layerTreeStateIsFrozen)
+        return false;
+
     return m_layerTreeHost && m_layerTreeHost->forceRepaintAsync(callbackID);
 }