Title: [156272] trunk/Source/WebCore
Revision
156272
Author
[email protected]
Date
2013-09-23 08:40:29 -0700 (Mon, 23 Sep 2013)

Log Message

[Qt] Tiled backing-store causes wrong translation
https://bugs.webkit.org/show_bug.cgi?id=121789

Reviewed by Noam Rosenthal.

Move the translation inside save/restore of the GraphicsContext.

* platform/graphics/qt/TileQt.cpp:
(WebCore::TileQt::updateBackBuffer):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (156271 => 156272)


--- trunk/Source/WebCore/ChangeLog	2013-09-23 15:09:34 UTC (rev 156271)
+++ trunk/Source/WebCore/ChangeLog	2013-09-23 15:40:29 UTC (rev 156272)
@@ -1,3 +1,15 @@
+2013-09-23  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] Tiled backing-store causes wrong translation
+        https://bugs.webkit.org/show_bug.cgi?id=121789
+
+        Reviewed by Noam Rosenthal.
+
+        Move the translation inside save/restore of the GraphicsContext.
+
+        * platform/graphics/qt/TileQt.cpp:
+        (WebCore::TileQt::updateBackBuffer):
+
 2013-09-23  Andreas Kling  <[email protected]>
 
         Unify code paths leading to render tree teardown.

Modified: trunk/Source/WebCore/platform/graphics/qt/TileQt.cpp (156271 => 156272)


--- trunk/Source/WebCore/platform/graphics/qt/TileQt.cpp	2013-09-23 15:09:34 UTC (rev 156271)
+++ trunk/Source/WebCore/platform/graphics/qt/TileQt.cpp	2013-09-23 15:40:29 UTC (rev 156272)
@@ -112,12 +112,12 @@
     
     QPainter painter(m_backBuffer);
     GraphicsContext context(&painter);
-    context.translate(-m_rect.x(), -m_rect.y());
 
     Vector<IntRect> updatedRects;
     int size = dirtyRects.size();
     for (int n = 0; n < size; ++n)  {
         context.save();
+        context.translate(-m_rect.x(), -m_rect.y());
         IntRect rect = dirtyRects[n];
         updatedRects.append(rect);
         context.clip(FloatRect(rect));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to