Title: [243796] trunk/Source/WebKit
Revision
243796
Author
[email protected]
Date
2019-04-03 06:00:16 -0700 (Wed, 03 Apr 2019)

Log Message

[CoordinatedGraphics] Hidden pages are not suspended after a web view resize
https://bugs.webkit.org/show_bug.cgi?id=196487

Reviewed by Žan Doberšek.

When resizing the window, the hidden tabs are updated too, to avoid flickering or getting the old size when
switching tabs. For that we need to resume painting but we are not suspending it again after the update.

* WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
(WebKit::DrawingAreaCoordinatedGraphics::updateBackingStoreState): Suspend the painting again after a
synchronous update if needed.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (243795 => 243796)


--- trunk/Source/WebKit/ChangeLog	2019-04-03 12:42:38 UTC (rev 243795)
+++ trunk/Source/WebKit/ChangeLog	2019-04-03 13:00:16 UTC (rev 243796)
@@ -1,5 +1,19 @@
 2019-04-03  Carlos Garcia Campos  <[email protected]>
 
+        [CoordinatedGraphics] Hidden pages are not suspended after a web view resize
+        https://bugs.webkit.org/show_bug.cgi?id=196487
+
+        Reviewed by Žan Doberšek.
+
+        When resizing the window, the hidden tabs are updated too, to avoid flickering or getting the old size when
+        switching tabs. For that we need to resume painting but we are not suspending it again after the update.
+
+        * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
+        (WebKit::DrawingAreaCoordinatedGraphics::updateBackingStoreState): Suspend the painting again after a
+        synchronous update if needed.
+
+2019-04-03  Carlos Garcia Campos  <[email protected]>
+
         Web Inspector: [GTK] Copy copies to nowhere
         https://bugs.webkit.org/show_bug.cgi?id=181228
 

Modified: trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp (243795 => 243796)


--- trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp	2019-04-03 12:42:38 UTC (rev 243795)
+++ trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp	2019-04-03 13:00:16 UTC (rev 243796)
@@ -411,10 +411,13 @@
     if (respondImmediately) {
         // Make sure to resume painting if we're supposed to respond immediately, otherwise we'll just
         // send back an empty UpdateInfo struct.
+        bool wasSuspended = m_isPaintingSuspended;
         if (m_isPaintingSuspended)
             resumePainting();
 
         sendDidUpdateBackingStoreState();
+        if (wasSuspended)
+            suspendPainting();
     }
 
     m_inUpdateBackingStoreState = false;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to