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

Unified Diff: Source/core/svg/SVGFontFaceElement.h

Issue 21032002: Introduce toSVGFontFaceElement, and use it (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 | « Source/core/css/CSSFontFaceSource.cpp ('k') | Source/core/svg/SVGFontFaceFormatElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceElement.h
diff --git a/Source/core/svg/SVGFontFaceElement.h b/Source/core/svg/SVGFontFaceElement.h
index 844ac294a604e2f248ca33e45dd79f90ddc3878f..0da43df0660dc0dade71b06d4344141291c96e98 100644
--- a/Source/core/svg/SVGFontFaceElement.h
+++ b/Source/core/svg/SVGFontFaceElement.h
@@ -23,6 +23,7 @@
#define SVGFontFaceElement_h
#if ENABLE(SVG_FONTS)
+#include "SVGNames.h"
#include "core/svg/SVGElement.h"
namespace WebCore {
@@ -64,6 +65,12 @@ private:
SVGFontElement* m_fontElement;
};
+inline SVGFontFaceElement* toSVGFontFaceElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::font_faceTag));
+ return static_cast<SVGFontFaceElement*>(node);
+}
+
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)
« no previous file with comments | « Source/core/css/CSSFontFaceSource.cpp ('k') | Source/core/svg/SVGFontFaceFormatElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698