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

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

Issue 23563005: Add toSVGFontFaceUri|NameElement(), and use them. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « Source/core/svg/SVGFontFaceNameElement.h ('k') | Source/core/svg/SVGFontFaceUriElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceSrcElement.cpp
diff --git a/Source/core/svg/SVGFontFaceSrcElement.cpp b/Source/core/svg/SVGFontFaceSrcElement.cpp
index 849a2a4ba6c16e0c80fe09da1f5b9dc8aba5b132..e5ba1db9634660174760d1da7a8634cfeefddac9 100644
--- a/Source/core/svg/SVGFontFaceSrcElement.cpp
+++ b/Source/core/svg/SVGFontFaceSrcElement.cpp
@@ -51,9 +51,10 @@ PassRefPtr<CSSValueList> SVGFontFaceSrcElement::srcValue() const
for (Node* child = firstChild(); child; child = child->nextSibling()) {
RefPtr<CSSFontFaceSrcValue> srcValue;
if (child->hasTagName(font_face_uriTag))
- srcValue = static_cast<SVGFontFaceUriElement*>(child)->srcValue();
+ srcValue = toSVGFontFaceUriElement(child)->srcValue();
else if (child->hasTagName(font_face_nameTag))
- srcValue = static_cast<SVGFontFaceNameElement*>(child)->srcValue();
+ srcValue = toSVGFontFaceNameElement(child)->srcValue();
+
if (srcValue && srcValue->resource().length())
list->append(srcValue);
}
« no previous file with comments | « Source/core/svg/SVGFontFaceNameElement.h ('k') | Source/core/svg/SVGFontFaceUriElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698