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

Unified Diff: Source/core/html/HTMLScriptElement.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/dom/ScriptElement.cpp ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLScriptElement.h
diff --git a/Source/core/html/HTMLScriptElement.h b/Source/core/html/HTMLScriptElement.h
index dd1c1f68cfdd0457500066b63879c30ab7a1fec5..153f271dd9a9598590f0e95e4f88bb0a4035a869 100644
--- a/Source/core/html/HTMLScriptElement.h
+++ b/Source/core/html/HTMLScriptElement.h
@@ -67,6 +67,12 @@ private:
virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren();
};
+inline HTMLScriptElement* toHTMLScriptElement(Node* node)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::scriptTag));
+ return static_cast<HTMLScriptElement*>(node);
+}
+
} //namespace
#endif
« no previous file with comments | « Source/core/dom/ScriptElement.cpp ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698