Title: [108676] trunk/Source/WebKit2
Revision
108676
Author
[email protected]
Date
2012-02-23 14:41:05 -0800 (Thu, 23 Feb 2012)

Log Message

Flush layer changes after layout when resizing web page
https://bugs.webkit.org/show_bug.cgi?id=79399
<rdar://problem/10920157>

Reviewed by Andreas Kling.

Flush layer changes after layout, otherwise the scrollbars won't be updated
until sometime later which looks bad.

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::updateGeometry):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (108675 => 108676)


--- trunk/Source/WebKit2/ChangeLog	2012-02-23 22:10:02 UTC (rev 108675)
+++ trunk/Source/WebKit2/ChangeLog	2012-02-23 22:41:05 UTC (rev 108676)
@@ -1,3 +1,17 @@
+2012-02-23  Anders Carlsson  <[email protected]>
+
+        Flush layer changes after layout when resizing web page
+        https://bugs.webkit.org/show_bug.cgi?id=79399
+        <rdar://problem/10920157>
+
+        Reviewed by Andreas Kling.
+
+        Flush layer changes after layout, otherwise the scrollbars won't be updated
+        until sometime later which looks bad.
+
+        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
+        (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
+
 2012-02-23  Daniel Bates  <[email protected]>
 
         Add missing "Reviewed by" line to change log entry for changeset r108631

Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm (108675 => 108676)


--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm	2012-02-23 22:10:02 UTC (rev 108675)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm	2012-02-23 22:41:05 UTC (rev 108676)
@@ -171,6 +171,9 @@
     m_webPage->setSize(viewSize);
     m_webPage->layoutIfNeeded();
 
+    if (!m_layerTreeStateIsFrozen)
+        flushLayers();
+
     [CATransaction begin];
     [CATransaction setDisableActions:YES];
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to