Index: Source/core/svg/SVGTextPathElement.cpp |
diff --git a/Source/core/svg/SVGTextPathElement.cpp b/Source/core/svg/SVGTextPathElement.cpp |
index b3b1e5762f777feac3e285bcf4c8d9071da5962e..8b9b4e05f852a304dc2fe87e710be5b466696f8d 100644 |
--- a/Source/core/svg/SVGTextPathElement.cpp |
+++ b/Source/core/svg/SVGTextPathElement.cpp |
@@ -139,9 +139,7 @@ RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) |
bool SVGTextPathElement::rendererIsNeeded(const RenderStyle& style) |
{ |
- if (parentNode() |
- && (parentNode()->hasTagName(SVGNames::aTag) |
- || parentNode()->hasTagName(SVGNames::textTag))) |
+ if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode()))) |
return Element::rendererIsNeeded(style); |
return false; |