| Index: Source/core/svg/SVGHKernElement.cpp
|
| diff --git a/Source/core/svg/SVGHKernElement.cpp b/Source/core/svg/SVGHKernElement.cpp
|
| index 70cec60307e22d01fff6fb4acf12b49848823c99..d1aae656563b0693a6a1f022b88c63e97c7857f7 100644
|
| --- a/Source/core/svg/SVGHKernElement.cpp
|
| +++ b/Source/core/svg/SVGHKernElement.cpp
|
| @@ -44,7 +44,7 @@ PassRefPtr<SVGHKernElement> SVGHKernElement::create(const QualifiedName& tagName
|
| Node::InsertionNotificationRequest SVGHKernElement::insertedInto(ContainerNode* rootParent)
|
| {
|
| ContainerNode* fontNode = parentNode();
|
| - if (fontNode && fontNode->hasTagName(SVGNames::fontTag))
|
| + if (fontNode && isSVGFontElement(fontNode))
|
| toSVGFontElement(fontNode)->invalidateGlyphCache();
|
|
|
| return SVGElement::insertedInto(rootParent);
|
| @@ -53,7 +53,7 @@ Node::InsertionNotificationRequest SVGHKernElement::insertedInto(ContainerNode*
|
| void SVGHKernElement::removedFrom(ContainerNode* rootParent)
|
| {
|
| ContainerNode* fontNode = parentNode();
|
| - if (fontNode && fontNode->hasTagName(SVGNames::fontTag))
|
| + if (fontNode && isSVGFontElement(fontNode))
|
| toSVGFontElement(fontNode)->invalidateGlyphCache();
|
|
|
| SVGElement::removedFrom(rootParent);
|
|
|