Index: Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp |
diff --git a/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp b/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp |
index 4987e73331360c7f1473cef2a5060621bdcba403..95d3e51e6fd78508eac5a09e229e134414878aa9 100644 |
--- a/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp |
+++ b/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp |
@@ -138,7 +138,7 @@ RenderObject* SVGFilterPrimitiveStandardAttributes::createRenderer(RenderStyle*) |
bool SVGFilterPrimitiveStandardAttributes::rendererIsNeeded(const RenderStyle& style) |
{ |
- if (parentNode() && (parentNode()->hasTagName(SVGNames::filterTag))) |
+ if (isSVGFilterElement(parentNode())) |
return SVGElement::rendererIsNeeded(style); |
return false; |