Changeset 156272 in webkit


Ignore:
Timestamp:
Sep 23, 2013 8:40:29 AM (11 years ago)
Author:
allan.jensen@digia.com
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r156270 r156272  
     12013-09-23  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        [Qt] Tiled backing-store causes wrong translation
     4        https://bugs.webkit.org/show_bug.cgi?id=121789
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Move the translation inside save/restore of the GraphicsContext.
     9
     10        * platform/graphics/qt/TileQt.cpp:
     11        (WebCore::TileQt::updateBackBuffer):
     12
    1132013-09-23  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/qt/TileQt.cpp

    r99664 r156272  
    113113    QPainter painter(m_backBuffer);
    114114    GraphicsContext context(&painter);
    115     context.translate(-m_rect.x(), -m_rect.y());
    116115
    117116    Vector<IntRect> updatedRects;
     
    119118    for (int n = 0; n < size; ++n)  {
    120119        context.save();
     120        context.translate(-m_rect.x(), -m_rect.y());
    121121        IntRect rect = dirtyRects[n];
    122122        updatedRects.append(rect);
Note: See TracChangeset for help on using the changeset viewer.