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

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

Issue 23705005: Introduce toSVGGlyphElement(), toSVGHKernElement() and toSVGVKernElement(), 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/SVGHKernElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGVKernElement.h
diff --git a/Source/core/svg/SVGVKernElement.h b/Source/core/svg/SVGVKernElement.h
index e605c7b4b1fcb0ce6ec897e61f10dea25e8f38c3..18f509ff6bce38c8ed944ffe46a0c763f113a8ea 100644
--- a/Source/core/svg/SVGVKernElement.h
+++ b/Source/core/svg/SVGVKernElement.h
@@ -21,6 +21,7 @@
#define SVGVKernElement_h
#if ENABLE(SVG_FONTS)
+#include "SVGNames.h"
#include "core/svg/SVGElement.h"
#include "core/svg/SVGFontElement.h"
@@ -41,6 +42,12 @@ private:
virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; }
};
+inline SVGVKernElement* toSVGVKernElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::vkernTag));
+ return static_cast<SVGVKernElement*>(node);
+}
+
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)
« no previous file with comments | « Source/core/svg/SVGHKernElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698