Index: experimental/svg/model/SkSVGNode.cpp |
diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp |
index 012c7d22779bff7db48bb26fe90c6c0d7a24dce6..f40ee5dadb16896795cf991ff3eb6e2cdeb587f2 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; |
} |