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

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

Issue 16682004: Follow up patch for document.currentScript (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move things around a bit Created 7 years, 6 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/html/HTMLScriptElement.h ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGScriptElement.h
diff --git a/Source/core/svg/SVGScriptElement.h b/Source/core/svg/SVGScriptElement.h
index f19529cf92ef18b402214130474abbb337eea901..820d5b24dc1a756f3214037edfd458619f56bae3 100644
--- a/Source/core/svg/SVGScriptElement.h
+++ b/Source/core/svg/SVGScriptElement.h
@@ -21,6 +21,7 @@
#ifndef SVGScriptElement_h
#define SVGScriptElement_h
+#include "SVGNames.h"
#include "core/dom/ScriptElement.h"
#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedString.h"
@@ -85,6 +86,12 @@ private:
Timer<SVGElement> m_svgLoadEventTimer;
};
+inline SVGScriptElement* toSVGScriptElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptTag));
+ return static_cast<SVGScriptElement*>(node);
+}
+
} // namespace WebCore
#endif
« no previous file with comments | « Source/core/html/HTMLScriptElement.h ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698