2011-02-04 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 01:32:36 +0000 (01:32 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 01:32:36 +0000 (01:32 +0000)
        Reviewed by Mark Rowe.

        Link opened in background tab fails to paint when activated if it completes loading before tab is selected
        https://bugs.webkit.org/show_bug.cgi?id=53827
        <rdar://problem/8962355>

        * WebProcess/WebPage/DrawingAreaImpl.cpp:
        (WebKit::DrawingAreaImpl::resumePainting):
        Invalidate the entire page.

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp

index 30b0f8f232aae5414960e03290262024d34a5e97..b88b74e16bf846215e1633770e4079a0b7c86f46 100644 (file)
@@ -1,3 +1,15 @@
+2011-02-04  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Mark Rowe.
+
+        Link opened in background tab fails to paint when activated if it completes loading before tab is selected
+        https://bugs.webkit.org/show_bug.cgi?id=53827
+        <rdar://problem/8962355>
+
+        * WebProcess/WebPage/DrawingAreaImpl.cpp:
+        (WebKit::DrawingAreaImpl::resumePainting):
+        Invalidate the entire page.
+
 2011-02-04  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Sam Weinig.
index 6064e77e0edf166d41c2fc5c63b40e3fb7f881f4..acfd633da672b5cdf1aaf80dc3140a0ff3ab3c55 100644 (file)
@@ -227,7 +227,8 @@ void DrawingAreaImpl::resumePainting()
 
     m_isPaintingSuspended = false;
 
-    // FIXME: Repaint if needed.
+    // FIXME: We shouldn't always repaint everything here.
+    setNeedsDisplay(IntRect(IntPoint(), m_webPage->size()));
 }
 
 void DrawingAreaImpl::enterAcceleratedCompositingMode(GraphicsLayer* graphicsLayer)