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

Unified Diff: Source/core/svg/SVGHKernElement.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/SVGGlyphElement.h ('k') | Source/core/svg/SVGVKernElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGHKernElement.h
diff --git a/Source/core/svg/SVGHKernElement.h b/Source/core/svg/SVGHKernElement.h
index c142d95579fb411efebaf9c28ecc6a7c2769d647..74b158776a322cd5bc0fd2d964fe62c19c668baf 100644
--- a/Source/core/svg/SVGHKernElement.h
+++ b/Source/core/svg/SVGHKernElement.h
@@ -23,6 +23,7 @@
#define SVGHKernElement_h
#if ENABLE(SVG_FONTS)
+#include "SVGNames.h"
#include "core/svg/SVGFontElement.h"
namespace WebCore {
@@ -42,6 +43,12 @@ private:
virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; }
};
+inline SVGHKernElement* toSVGHKernElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::hkernTag));
+ return static_cast<SVGHKernElement*>(node);
+}
+
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)
« no previous file with comments | « Source/core/svg/SVGGlyphElement.h ('k') | Source/core/svg/SVGVKernElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698