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

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

Issue 23583011: Add toSVGPolylineElement(), 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/SVGPathData.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/SVGPolylineElement.h
diff --git a/Source/core/svg/SVGPolylineElement.h b/Source/core/svg/SVGPolylineElement.h
index 3f64854e663330eb533fe9186bdf672e66fe1d48..57f948c9a5b567d3253226db56dbb15d2f40a22d 100644
--- a/Source/core/svg/SVGPolylineElement.h
+++ b/Source/core/svg/SVGPolylineElement.h
@@ -21,6 +21,7 @@
#ifndef SVGPolylineElement_h
#define SVGPolylineElement_h
+#include "SVGNames.h"
#include "core/svg/SVGPolyElement.h"
namespace WebCore {
@@ -33,6 +34,12 @@ private:
SVGPolylineElement(const QualifiedName&, Document*);
};
+inline SVGPolylineElement* toSVGPolylineElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::polylineTag));
+ return static_cast<SVGPolylineElement*>(node);
+}
+
} // namespace WebCore
#endif
« no previous file with comments | « Source/core/rendering/svg/SVGPathData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698