Chromium Code Reviews| Index: Source/core/svg/SVGHKernElement.cpp |
| diff --git a/Source/core/svg/SVGHKernElement.cpp b/Source/core/svg/SVGHKernElement.cpp |
| index d9f0b07ee9254dde1a6ae043ad03f287cc2700bf..463dc8565a86a3df47dc40fb6fd279d6a62400e5 100644 |
| --- a/Source/core/svg/SVGHKernElement.cpp |
| +++ b/Source/core/svg/SVGHKernElement.cpp |
| @@ -45,8 +45,8 @@ Node::InsertionNotificationRequest SVGHKernElement::insertedInto(ContainerNode* |
| { |
| ContainerNode* fontNode = parentNode(); |
| if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) { |
| - if (SVGFontElement* element = static_cast<SVGFontElement*>(fontNode)) |
| - element->invalidateGlyphCache(); |
| + SVGFontElement* element = toSVGFontElement(fontNode); |
|
tkent
2013/07/08 21:31:11
Ditto.
|
| + element->invalidateGlyphCache(); |
| } |
| return SVGElement::insertedInto(rootParent); |
| @@ -56,8 +56,8 @@ void SVGHKernElement::removedFrom(ContainerNode* rootParent) |
| { |
| ContainerNode* fontNode = parentNode(); |
| if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) { |
| - if (SVGFontElement* element = static_cast<SVGFontElement*>(fontNode)) |
| - element->invalidateGlyphCache(); |
| + SVGFontElement* element = toSVGFontElement(fontNode); |
|
tkent
2013/07/08 21:31:11
Ditto.
|
| + element->invalidateGlyphCache(); |
| } |
| SVGElement::removedFrom(rootParent); |