Index: Source/core/svg/SVGGlyphElement.cpp |
diff --git a/Source/core/svg/SVGGlyphElement.cpp b/Source/core/svg/SVGGlyphElement.cpp |
index 865f2a6cfa4cd75bf733aa9d483146b4f9d20f0d..e8c3fce8548469a4bbccc692c22dee0381a857e5 100644 |
--- a/Source/core/svg/SVGGlyphElement.cpp |
+++ b/Source/core/svg/SVGGlyphElement.cpp |
@@ -46,7 +46,7 @@ PassRefPtr<SVGGlyphElement> SVGGlyphElement::create(const QualifiedName& tagName |
void SVGGlyphElement::invalidateGlyphCache() |
{ |
ContainerNode* fontNode = parentNode(); |
- if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) |
+ if (fontNode && isSVGFontElement(fontNode)) |
toSVGFontElement(fontNode)->invalidateGlyphCache(); |
} |