| Index: Source/core/svg/SVGGlyphElement.cpp
|
| diff --git a/Source/core/svg/SVGGlyphElement.cpp b/Source/core/svg/SVGGlyphElement.cpp
|
| index ace7f98f80e022c6ad0e954fe85aefd1f2ee1a35..51866baf998431c91dec43aef9ec871e5aede511 100644
|
| --- a/Source/core/svg/SVGGlyphElement.cpp
|
| +++ b/Source/core/svg/SVGGlyphElement.cpp
|
| @@ -44,8 +44,8 @@ PassRefPtr<SVGGlyphElement> SVGGlyphElement::create(Document& document)
|
| void SVGGlyphElement::invalidateGlyphCache()
|
| {
|
| ContainerNode* fontNode = parentNode();
|
| - if (fontNode && fontNode->hasTagName(SVGNames::fontTag))
|
| - toSVGFontElement(fontNode)->invalidateGlyphCache();
|
| + if (isSVGFontElement(fontNode))
|
| + toSVGFontElement(*fontNode).invalidateGlyphCache();
|
| }
|
|
|
| void SVGGlyphElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
|
|