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

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

Issue 18045006: Use toSVGFontElement() instead of static_cast<SVGFontElement*> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed svg layout test 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
Index: Source/core/svg/SVGGlyphElement.cpp
diff --git a/Source/core/svg/SVGGlyphElement.cpp b/Source/core/svg/SVGGlyphElement.cpp
index a900a82e3a5906f74dc6ee06f3c0f81d31a5c00f..e7c04243e4443517b38fdc59b3072bbc967600f2 100644
--- a/Source/core/svg/SVGGlyphElement.cpp
+++ b/Source/core/svg/SVGGlyphElement.cpp
@@ -47,7 +47,7 @@ void SVGGlyphElement::invalidateGlyphCache()
{
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 Because fontNode is non-null, element never be nul
element->invalidateGlyphCache();
}
}

Powered by Google App Engine
This is Rietveld 408576698