Index: Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceClipper.cpp b/Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
index a1875ff6fdcbebcaf11d13749b8b26e1555297f1..92a96dd39496417cc3831ae5ff8a3b8e389470fc 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceClipper.cpp |
@@ -226,7 +226,7 @@ bool RenderSVGResourceClipper::drawContentIntoMaskImage(ClipperData* clipperData |
// Draw all clipPath children into a global mask. |
for (Node* childNode = node()->firstChild(); childNode; childNode = childNode->nextSibling()) { |
RenderObject* renderer = childNode->renderer(); |
- if (!childNode->isSVGElement() || !toSVGElement(childNode)->isSVGStyledElement() || !renderer) |
+ if (!childNode->isSVGElement() || !renderer) |
continue; |
if (renderer->needsLayout()) { |
frame()->view()->setPaintBehavior(oldBehavior); |
@@ -268,7 +268,7 @@ void RenderSVGResourceClipper::calculateClipContentRepaintRect() |
// This is a rough heuristic to appraise the clip size and doesn't consider clip on clip. |
for (Node* childNode = node()->firstChild(); childNode; childNode = childNode->nextSibling()) { |
RenderObject* renderer = childNode->renderer(); |
- if (!childNode->isSVGElement() || !toSVGElement(childNode)->isSVGStyledElement() || !renderer) |
+ if (!childNode->isSVGElement() || !renderer) |
continue; |
if (!renderer->isSVGShape() && !renderer->isSVGText() && !childNode->hasTagName(SVGNames::useTag)) |
continue; |
@@ -298,7 +298,7 @@ bool RenderSVGResourceClipper::hitTestClipContent(const FloatRect& objectBoundin |
for (Node* childNode = node()->firstChild(); childNode; childNode = childNode->nextSibling()) { |
RenderObject* renderer = childNode->renderer(); |
- if (!childNode->isSVGElement() || !toSVGElement(childNode)->isSVGStyledElement() || !renderer) |
+ if (!childNode->isSVGElement() || !renderer) |
continue; |
if (!renderer->isSVGShape() && !renderer->isSVGText() && !childNode->hasTagName(SVGNames::useTag)) |
continue; |