aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/svg/model/SkSVGNode.cpp')
-rw-r--r--experimental/svg/model/SkSVGNode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp
index 012c7d2277..f40ee5dadb 100644
--- a/experimental/svg/model/SkSVGNode.cpp
+++ b/experimental/svg/model/SkSVGNode.cpp
@@ -31,7 +31,8 @@ bool SkSVGNode::asPaint(const SkSVGRenderContext& ctx, SkPaint* paint) const {
}
bool SkSVGNode::onPrepareToRender(SkSVGRenderContext* ctx) const {
- ctx->applyPresentationAttributes(fPresentationAttributes);
+ ctx->applyPresentationAttributes(fPresentationAttributes,
+ this->hasChildren() ? 0 : SkSVGRenderContext::kLeaf);
return true;
}