Changeset 78751 in webkit


Ignore:
Timestamp:
Feb 16, 2011 4:50:24 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-16 Robin Cao <robin.cao@torchmobile.com.cn>

Reviewed by James Robinson.

PlatformContextSkia::applyAntiAliasedClipPaths does not work for paths which have evenOdd property
https://bugs.webkit.org/show_bug.cgi?id=54336

We need to take fill type of paths into account when drawing them.

No new tests, covered by svg/W3C-SVG-1.1/masking-path-05-f.svg.

  • platform/graphics/skia/PlatformContextSkia.cpp: (WebCore::PlatformContextSkia::applyAntiAliasedClipPaths):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r78747 r78751  
     12011-02-16  Robin Cao  <robin.cao@torchmobile.com.cn>
     2
     3        Reviewed by James Robinson.
     4
     5        PlatformContextSkia::applyAntiAliasedClipPaths does not work for paths which have evenOdd property
     6        https://bugs.webkit.org/show_bug.cgi?id=54336
     7
     8        We need to take fill type of paths into account when drawing them.
     9
     10        No new tests, covered by svg/W3C-SVG-1.1/masking-path-05-f.svg.
     11
     12        * platform/graphics/skia/PlatformContextSkia.cpp:
     13        (WebCore::PlatformContextSkia::applyAntiAliasedClipPaths):
     14
    1152011-02-16  Eric Seidel  <eric@webkit.org>
    216
  • trunk/Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp

    r78377 r78751  
    689689
    690690    for (size_t i = paths.size() - 1; i < paths.size(); --i) {
    691         paths[i].setFillType(SkPath::kInverseWinding_FillType);
     691        paths[i].toggleInverseFillType();
    692692        m_canvas->drawPath(paths[i], paint);
    693693    }
Note: See TracChangeset for help on using the changeset viewer.