Changeset 140094 in webkit


Ignore:
Timestamp:
Jan 17, 2013 7:44:03 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Update GraphicsContext to support winding rule in clip operator for QT
https://bugs.webkit.org/show_bug.cgi?id=106873

Patch by Rik Cabanier <cabanier@adobe.com> on 2013-01-17
Reviewed by Dirk Schulze.

Added support for winding to clip() and canvasClip() functions.

No new tests, no change in behavior.

  • platform/graphics/qt/GraphicsContextQt.cpp:

(WebCore::GraphicsContext::clip): Use passed in winding rule.
(WebCore::GraphicsContext::canvasClip): Rename variable.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140091 r140094  
     12013-01-17  Rik Cabanier  <cabanier@adobe.com>
     2
     3        Update GraphicsContext to support winding rule in clip operator for QT
     4        https://bugs.webkit.org/show_bug.cgi?id=106873
     5
     6        Reviewed by Dirk Schulze.
     7
     8        Added support for winding to clip() and canvasClip() functions.
     9
     10        No new tests, no change in behavior.
     11
     12        * platform/graphics/qt/GraphicsContextQt.cpp:
     13        (WebCore::GraphicsContext::clip): Use passed in winding rule.
     14        (WebCore::GraphicsContext::canvasClip): Rename variable.
     15
    1162013-01-17  Rik Cabanier  <cabanier@adobe.com>
    217
  • trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r139967 r140094  
    12521252}
    12531253
    1254 // FIXME: don't ignore the winding rule. https://bugs.webkit.org/show_bug.cgi?id=106873
    1255 void GraphicsContext::clip(const Path& path, WindRule)
     1254void GraphicsContext::clip(const Path& path, WindRule windRule)
    12561255{
    12571256    if (paintingDisabled())
     
    12591258
    12601259    QPainterPath clipPath = path.platformPath();
    1261     clipPath.setFillRule(Qt::WindingFill);
     1260    clipPath.setFillRule(toQtFillRule(windRule));
    12621261    m_data->p()->setClipPath(clipPath, Qt::IntersectClip);
    12631262}
    12641263
    1265 void GraphicsContext::canvasClip(const Path& path, WindRule fillRule)
    1266 {
    1267     clip(path, fillRule);
     1264void GraphicsContext::canvasClip(const Path& path, WindRule windRule)
     1265{
     1266    clip(path, windRule);
    12681267}
    12691268
Note: See TracChangeset for help on using the changeset viewer.