Changeset 69579 in webkit


Ignore:
Timestamp:
Oct 12, 2010 7:05:43 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-10-12 Andreas Kling <kling@webkit.org>

Reviewed by Antonio Gomes.

[Qt] Clipping problem viewing SVG with WebKit
https://bugs.webkit.org/show_bug.cgi?id=29596

SVG path clipping (via GraphicsContext::clipPath()) was done using the
Qt::ReplaceClip mode (default) instead of Qt::IntersectClip. This led
to misrenderings when nesting multiple clip paths.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69567 r69579  
     12010-10-12  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Clipping problem viewing SVG with WebKit
     6        https://bugs.webkit.org/show_bug.cgi?id=29596
     7
     8        SVG path clipping (via GraphicsContext::clipPath()) was done using the
     9        Qt::ReplaceClip mode (default) instead of Qt::IntersectClip. This led
     10        to misrenderings when nesting multiple clip paths.
     11
     12        * platform/graphics/qt/GraphicsContextQt.cpp:
     13        (WebCore::GraphicsContext::clipPath):
     14
    1152010-10-07  Pavel Podivilov  <podivilov@chromium.org>
    216
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r69517 r69579  
    786786    QPainterPath newPath = m_data->currentPath;
    787787    newPath.setFillRule(clipRule == RULE_EVENODD ? Qt::OddEvenFill : Qt::WindingFill);
    788     p->setClipPath(newPath);
     788    p->setClipPath(newPath, Qt::IntersectClip);
    789789}
    790790
Note: See TracChangeset for help on using the changeset viewer.