Title: [106249] trunk/Source/WebKit2
Revision
106249
Author
[email protected]
Date
2012-01-30 09:19:26 -0800 (Mon, 30 Jan 2012)

Log Message

[Qt][WK2] Render layers do not get flushed when the scroll animation finishes
https://bugs.webkit.org/show_bug.cgi?id=77338

Reviewed by Noam Rosenthal.

Schedule a layer flush when setting the visible content rect and scale.

Fixed with the help of Jocelyn Turcotte <[email protected]>

* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHostQt::setVisibleContentRectAndScale):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (106248 => 106249)


--- trunk/Source/WebKit2/ChangeLog	2012-01-30 16:58:20 UTC (rev 106248)
+++ trunk/Source/WebKit2/ChangeLog	2012-01-30 17:19:26 UTC (rev 106249)
@@ -1,3 +1,17 @@
+2012-01-30  Andras Becsi  <[email protected]>
+
+        [Qt][WK2] Render layers do not get flushed when the scroll animation finishes
+        https://bugs.webkit.org/show_bug.cgi?id=77338
+
+        Reviewed by Noam Rosenthal.
+
+        Schedule a layer flush when setting the visible content rect and scale.
+
+        Fixed with the help of Jocelyn Turcotte <[email protected]>
+
+        * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
+        (WebKit::LayerTreeHostQt::setVisibleContentRectAndScale):
+
 2012-01-30  Carlos Garcia Campos  <[email protected]>
 
         Unreviewed. Fix make distcheck.

Modified: trunk/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp (106248 => 106249)


--- trunk/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp	2012-01-30 16:58:20 UTC (rev 106248)
+++ trunk/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp	2012-01-30 17:19:26 UTC (rev 106249)
@@ -403,8 +403,10 @@
 
 void LayerTreeHostQt::setVisibleContentRectAndScale(const IntRect& rect, float scale)
 {
-    if (m_rootLayer)
+    if (m_rootLayer) {
         toWebGraphicsLayer(m_rootLayer.get())->setVisibleContentRectAndScale(rect, scale);
+        scheduleLayerFlush();
+    }
 }
 
 void LayerTreeHostQt::setVisibleContentRectTrajectoryVector(const FloatPoint& trajectoryVector)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to