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

Unified Diff: Source/core/loader/cache/CachedFont.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
« no previous file with comments | « no previous file | Source/core/svg/SVGFontElement.h » ('j') | Source/core/svg/SVGGlyphElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/CachedFont.cpp
diff --git a/Source/core/loader/cache/CachedFont.cpp b/Source/core/loader/cache/CachedFont.cpp
index 129de3e2581dd8501896b63b4eda0f9d2bf7d980..56952ac853a380f50eba79e217dd548252b9590d 100644
--- a/Source/core/loader/cache/CachedFont.cpp
+++ b/Source/core/loader/cache/CachedFont.cpp
@@ -135,10 +135,10 @@ SVGFontElement* CachedFont::getSVGFontById(const String& fontName) const
#endif
if (fontName.isEmpty())
- return static_cast<SVGFontElement*>(list->item(0));
+ return toSVGFontElement(list->item(0));
for (unsigned i = 0; i < listLength; ++i) {
- SVGFontElement* element = static_cast<SVGFontElement*>(list->item(i));
+ SVGFontElement* element = toSVGFontElement(list->item(i));
if (element->getIdAttribute() == fontName)
return element;
}
« no previous file with comments | « no previous file | Source/core/svg/SVGFontElement.h » ('j') | Source/core/svg/SVGGlyphElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698