Index: Source/core/svg/SVGVKernElement.cpp |
diff --git a/Source/core/svg/SVGVKernElement.cpp b/Source/core/svg/SVGVKernElement.cpp |
index d78c777901ca9d19c5d2fbeb8b4ed95487e80b29..db8293eb69693de281485dda416761859f7e02f2 100644 |
--- a/Source/core/svg/SVGVKernElement.cpp |
+++ b/Source/core/svg/SVGVKernElement.cpp |
@@ -44,7 +44,7 @@ Node::InsertionNotificationRequest SVGVKernElement::insertedInto(ContainerNode* |
{ |
if (rootParent->inDocument()) { |
ContainerNode* fontNode = parentNode(); |
- if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) |
+ if (fontNode && isSVGFontElement(fontNode)) |
toSVGFontElement(fontNode)->invalidateGlyphCache(); |
} |
@@ -54,7 +54,7 @@ Node::InsertionNotificationRequest SVGVKernElement::insertedInto(ContainerNode* |
void SVGVKernElement::removedFrom(ContainerNode* rootParent) |
{ |
ContainerNode* fontNode = parentNode(); |
- if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) |
+ if (fontNode && isSVGFontElement(fontNode)) |
toSVGFontElement(fontNode)->invalidateGlyphCache(); |
SVGElement::removedFrom(rootParent); |