Title: [96765] trunk/Source/WebKit2
Revision
96765
Author
[email protected]
Date
2011-10-05 16:40:09 -0700 (Wed, 05 Oct 2011)

Log Message

Flash of white when unminimizing windows
https://bugs.webkit.org/show_bug.cgi?id=69476
<rdar://problem/10202680>

Reviewed by Simon Fraser.

Whenever the UI process requests an immediate backing store update, make sure to resume
painting if it's suspended.

* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::updateBackingStoreState):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (96764 => 96765)


--- trunk/Source/WebKit2/ChangeLog	2011-10-05 23:27:54 UTC (rev 96764)
+++ trunk/Source/WebKit2/ChangeLog	2011-10-05 23:40:09 UTC (rev 96765)
@@ -1,3 +1,17 @@
+2011-10-05  Anders Carlsson  <[email protected]>
+
+        Flash of white when unminimizing windows
+        https://bugs.webkit.org/show_bug.cgi?id=69476
+        <rdar://problem/10202680>
+
+        Reviewed by Simon Fraser.
+
+        Whenever the UI process requests an immediate backing store update, make sure to resume
+        painting if it's suspended.
+
+        * WebProcess/WebPage/DrawingAreaImpl.cpp:
+        (WebKit::DrawingAreaImpl::updateBackingStoreState):
+
 2011-10-05  Caio Marcelo de Oliveira Filho  <[email protected]>
 
         [Qt] [WK2] Support JS alert/confirm/prompt in QDesktopWebView

Modified: trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp (96764 => 96765)


--- trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp	2011-10-05 23:27:54 UTC (rev 96764)
+++ trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp	2011-10-05 23:40:09 UTC (rev 96765)
@@ -338,8 +338,14 @@
     // sendDidUpdateBackingStoreState; otherwise we shouldn't do one right now.
     m_isWaitingForDidUpdate = false;
 
-    if (respondImmediately)
+    if (respondImmediately) {
+        // Make sure to resume painting if we're supposed to respond immediately, otherwise we'll just
+        // send back an empty UpdateInfo struct.
+        if (m_isPaintingSuspended)
+            resumePainting();
+
         sendDidUpdateBackingStoreState();
+    }
 
     m_inUpdateBackingStoreState = false;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to