Index: Source/core/dom/RenderTreeBuilder.cpp |
diff --git a/Source/core/dom/RenderTreeBuilder.cpp b/Source/core/dom/RenderTreeBuilder.cpp |
index 168fcce88be4aa17d155cf9627e9d97dbd9d100f..bb52e93f7887955aeff8327bfd0b24bc111bf499 100644 |
--- a/Source/core/dom/RenderTreeBuilder.cpp |
+++ b/Source/core/dom/RenderTreeBuilder.cpp |
@@ -80,7 +80,7 @@ bool RenderTreeBuilder::shouldCreateRenderer() const |
return false; |
if (m_node->isSVGElement()) { |
// SVG elements only render when inside <svg>, or if the element is an <svg> itself. |
- if (!m_node->hasTagName(SVGNames::svgTag) && !m_renderingParent->isSVGElement()) |
+ if (!isSVGSVGElement(*m_node) && !m_renderingParent->isSVGElement()) |
return false; |
if (!toSVGElement(m_node)->isValid()) |
return false; |