Index: Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
diff --git a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
index ab1426828782aaabd49389199bb676bac24a9fab..ca62f4c9caeaa0393a583b3ed9b09cc916edadb6 100644 |
--- a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
+++ b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
@@ -169,23 +169,17 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin |
if (!style || style->display() == NONE || style->visibility() != VISIBLE) |
continue; |
- WindRule newClipRule = style->svgStyle().clipRule(); |
bool isUseElement = isSVGUseElement(*childElement); |
if (isUseElement) { |
- SVGUseElement& useElement = toSVGUseElement(*childElement); |
- layoutObject = useElement.layoutObjectClipChild(); |
+ layoutObject = toSVGUseElement(*childElement).layoutObjectClipChild(); |
if (!layoutObject) |
continue; |
- if (!useElement.hasAttribute(SVGNames::clip_ruleAttr)) |
- newClipRule = layoutObject->style()->svgStyle().clipRule(); |
} |
// Only shapes, paths and texts are allowed for clipping. |
if (!layoutObject->isSVGShape() && !layoutObject->isSVGText()) |
continue; |
- context.setFillRule(newClipRule); |
- |
if (isUseElement) |
layoutObject = childElement->layoutObject(); |