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

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

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/SVGFontFaceSrcElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceUriElement.h
diff --git a/Source/core/svg/SVGFontFaceUriElement.h b/Source/core/svg/SVGFontFaceUriElement.h
index fb4f8c80345cb5d034e73d6229ed659cba2bcc53..8a3f84eedd5cee50d59a4f303ae8120878b77388 100644
--- a/Source/core/svg/SVGFontFaceUriElement.h
+++ b/Source/core/svg/SVGFontFaceUriElement.h
@@ -21,6 +21,7 @@
#define SVGFontFaceUriElement_h
#if ENABLE(SVG_FONTS)
+#include "SVGNames.h"
#include "core/fetch/FontResource.h"
#include "core/fetch/ResourcePtr.h"
#include "core/svg/SVGElement.h"
@@ -51,6 +52,12 @@ private:
ResourcePtr<FontResource> m_resource;
};
+inline SVGFontFaceUriElement* toSVGFontFaceUriElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::font_face_uriTag));
+ return static_cast<SVGFontFaceUriElement*>(node);
+}
+
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)
« no previous file with comments | « Source/core/svg/SVGFontFaceSrcElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698