Changeset 64971 in webkit


Ignore:
Timestamp:
Aug 9, 2010 2:36:25 AM (14 years ago)
Author:
ariya@webkit.org
Message:

2010-08-09 Ariya Hidayat <ariya@sencha.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] GraphicsContext::clipOut(IntRect) ignores the transformation matrix.
https://bugs.webkit.org/show_bug.cgi?id=43705

Just like clipOut(Path), which is taken care in r60796 already,
clipOut(IntRect) must transform the window bounding box properly.

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::clipOut):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64967 r64971  
     12010-08-09  Ariya Hidayat  <ariya@sencha.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] GraphicsContext::clipOut(IntRect) ignores the transformation matrix.
     6        https://bugs.webkit.org/show_bug.cgi?id=43705
     7
     8        Just like clipOut(Path), which is taken care in r60796 already,
     9        clipOut(IntRect) must transform the window bounding box properly.
     10
     11        * platform/graphics/qt/GraphicsContextQt.cpp:
     12        (WebCore::GraphicsContext::clipOut):
     13
    1142010-08-09  François Sausset  <sausset@gmail.com>
    215
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r64047 r64971  
    11931193    } else {
    11941194        QRect clipOutRect(rect);
    1195         QRect window(p->window());
     1195        QRect window = p->transform().inverted().mapRect(p->window());
    11961196        clipOutRect &= window;
    11971197        newClip.addRect(window);
Note: See TracChangeset for help on using the changeset viewer.