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

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

Issue 23023002: Add toSVGTextPathElement(), and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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/rendering/svg/RenderSVGTextPath.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/SVGTextPathElement.h
diff --git a/Source/core/svg/SVGTextPathElement.h b/Source/core/svg/SVGTextPathElement.h
index ab6bcb9881b682fd136d86db5de77ac26b77b45b..0ad3f96f238922a786a8fda9b31bde5b4441e4b0 100644
--- a/Source/core/svg/SVGTextPathElement.h
+++ b/Source/core/svg/SVGTextPathElement.h
@@ -20,8 +20,8 @@
#ifndef SVGTextPathElement_h
#define SVGTextPathElement_h
+#include "SVGNames.h"
#include "core/svg/SVGTextContentElement.h"
-
#include "core/svg/SVGURIReference.h"
namespace WebCore {
@@ -140,6 +140,12 @@ private:
END_DECLARE_ANIMATED_PROPERTIES
};
+inline SVGTextPathElement* toSVGTextPathElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::textPathTag));
+ return static_cast<SVGTextPathElement*>(node);
+}
+
} // namespace WebCore
#endif
« no previous file with comments | « Source/core/rendering/svg/RenderSVGTextPath.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698