summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorjhaas@chromium.org <jhaas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-23 01:06:54 +0000
committerjhaas@chromium.org <jhaas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-23 01:06:54 +0000
commitaa89259dae26c54d540ce53e65fc64b26f9c028c (patch)
treeaa7654597419ae208caf9e8ce9410e3a20b051b8 /webkit/port
parent8f855fbd49675eeeeaff3e8db928e65fefe9da44 (diff)
downloadchromium_src-aa89259dae26c54d540ce53e65fc64b26f9c028c.zip
chromium_src-aa89259dae26c54d540ce53e65fc64b26f9c028c.tar.gz
chromium_src-aa89259dae26c54d540ce53e65fc64b26f9c028c.tar.bz2
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
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/platform/graphics/GraphicsContextSkia.cpp3
1 files changed, 3 insertions, 0 deletions
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);