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..59a6548a9a5925a815e4a3b40d3a72245be09afb 100644 |
| --- a/Source/core/svg/SVGHKernElement.cpp |
| +++ b/Source/core/svg/SVGHKernElement.cpp |
| @@ -45,7 +45,7 @@ Node::InsertionNotificationRequest SVGHKernElement::insertedInto(ContainerNode* |
| { |
| ContainerNode* fontNode = parentNode(); |
| if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) { |
| - if (SVGFontElement* element = static_cast<SVGFontElement*>(fontNode)) |
| + if (SVGFontElement* element = toSVGFontElement(fontNode)) |
|
tkent
2013/07/06 06:14:37
Ditto.
|
| element->invalidateGlyphCache(); |
| } |
| @@ -56,7 +56,7 @@ void SVGHKernElement::removedFrom(ContainerNode* rootParent) |
| { |
| ContainerNode* fontNode = parentNode(); |
| if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) { |
| - if (SVGFontElement* element = static_cast<SVGFontElement*>(fontNode)) |
| + if (SVGFontElement* element = toSVGFontElement(fontNode)) |
|
tkent
2013/07/06 06:14:37
Ditto.
|
| element->invalidateGlyphCache(); |
| } |