Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1550)

Unified Diff: Source/core/svg/SVGVKernElement.cpp

Issue 18045006: Use toSVGFontElement() instead of static_cast<SVGFontElement*> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/core/svg/SVGHKernElement.cpp ('K') | « Source/core/svg/SVGHKernElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGVKernElement.cpp
diff --git a/Source/core/svg/SVGVKernElement.cpp b/Source/core/svg/SVGVKernElement.cpp
index 65a03fe413677db7cd99dd1b47acad855cb04d5b..95b01ddfe2d51f8a3d9a63b9e5d0e57e040b06ea 100644
--- a/Source/core/svg/SVGVKernElement.cpp
+++ b/Source/core/svg/SVGVKernElement.cpp
@@ -44,8 +44,8 @@ Node::InsertionNotificationRequest SVGVKernElement::insertedInto(ContainerNode*
if (rootParent->inDocument()) {
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();
}
}
@@ -56,8 +56,8 @@ void SVGVKernElement::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);
}
« Source/core/svg/SVGHKernElement.cpp ('K') | « Source/core/svg/SVGHKernElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698