aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGPoly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/svg/model/SkSVGPoly.cpp')
-rw-r--r--experimental/svg/model/SkSVGPoly.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/experimental/svg/model/SkSVGPoly.cpp b/experimental/svg/model/SkSVGPoly.cpp
index 479638e93f..e2bc5bc606 100644
--- a/experimental/svg/model/SkSVGPoly.cpp
+++ b/experimental/svg/model/SkSVGPoly.cpp
@@ -40,10 +40,11 @@ void SkSVGPoly::onDraw(SkCanvas* canvas, const SkSVGLengthContext&, const SkPain
}
SkPath SkSVGPoly::onAsPath(const SkSVGRenderContext& ctx) const {
- // the computed fillType follows inheritance rules and needs to be applied at draw time.
- fPath.setFillType(FillRuleToFillType(*ctx.presentationContext().fInherited.fFillRule.get()));
-
SkPath path = fPath;
+
+ // clip-rule can be inherited and needs to be applied at clip time.
+ path.setFillType(ctx.presentationContext().fInherited.fClipRule.get()->asFillType());
+
this->mapToParent(&path);
return path;
}