From aa89259dae26c54d540ce53e65fc64b26f9c028c Mon Sep 17 00:00:00 2001 From: "jhaas@chromium.org" Date: Thu, 23 Oct 2008 01:06:54 +0000 Subject: Fixed SVG path fill rule (even-odd or winding) which broke with the merge Review URL: http://codereview.chromium.org/7904 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3806 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/platform/graphics/GraphicsContextSkia.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webkit/port/platform/graphics') diff --git a/webkit/port/platform/graphics/GraphicsContextSkia.cpp b/webkit/port/platform/graphics/GraphicsContextSkia.cpp index ba9cdba..8547756 100644 --- a/webkit/port/platform/graphics/GraphicsContextSkia.cpp +++ b/webkit/port/platform/graphics/GraphicsContextSkia.cpp @@ -477,6 +477,9 @@ void GraphicsContext::fillPath() if (colorSpace == SolidColorSpace && !fillColor().alpha()) return; + m_data->setFillRule(state.fillRule == RULE_EVENODD ? + SkPath::kEvenOdd_FillType : SkPath::kWinding_FillType); + SkPaint paint; m_data->setup_paint_fill(&paint); -- cgit v1.1