aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/svg/model/SkSVGPath.cpp')
-rw-r--r--experimental/svg/model/SkSVGPath.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/experimental/svg/model/SkSVGPath.cpp b/experimental/svg/model/SkSVGPath.cpp
index 7568744035..3c09ab9885 100644
--- a/experimental/svg/model/SkSVGPath.cpp
+++ b/experimental/svg/model/SkSVGPath.cpp
@@ -33,10 +33,9 @@ void SkSVGPath::onDraw(SkCanvas* canvas, const SkSVGLengthContext&, const SkPain
}
SkPath SkSVGPath::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;
}