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

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: 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') | no next file with comments »
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 782ff17bddec72f85ee4f3bba05d4e396d27afe6..5ae164270e2a049f31d75e777669b0dc7d271b0a 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698