Index: Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceClipper.cpp b/Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
index 2f92188a50881e6314d4238c1f0a1829d1244b50..e7c2f6454e4fc681ef53c19bd98a6a1cba4e6dab 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
@@ -91,14 +91,14 @@ bool RenderSVGResourceClipper::tryPathOnlyClipping(GraphicsContext* context, |
WindRule clipRule = RULE_NONZERO; |
Path clipPath = Path(); |
- for (Element* childElement = ElementTraversal::firstChild(*element()); childElement; childElement = ElementTraversal::nextSibling(*childElement)) { |
+ for (SVGElement* childElement = Traversal<SVGElement>::firstChild(*element()); childElement; childElement = Traversal<SVGElement>::nextSibling(*childElement)) { |
RenderObject* renderer = childElement->renderer(); |
if (!renderer) |
continue; |
// Only shapes or paths are supported for direct clipping. We need to fallback to masking for texts. |
if (renderer->isSVGText()) |
return false; |
- if (!childElement->isSVGElement() || !toSVGElement(childElement)->isSVGGraphicsElement()) |
+ if (!childElement->isSVGGraphicsElement()) |
continue; |
SVGGraphicsElement* styled = toSVGGraphicsElement(childElement); |
RenderStyle* style = renderer->style(); |