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

Unified Diff: third_party/WebKit/Source/core/dom/Document.idl

Issue 1945563002: Set currentScript for SVGScriptElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary include Created 4 years, 7 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
Index: third_party/WebKit/Source/core/dom/Document.idl
diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl
index 0553695570180fc3664fad96d012dfd4d89e43f1..6a8093d427f3e25eadf8c9f82227edde31c976aa 100644
--- a/third_party/WebKit/Source/core/dom/Document.idl
+++ b/third_party/WebKit/Source/core/dom/Document.idl
@@ -29,6 +29,8 @@ enum VisibilityState { "hidden", "visible", "prerender", "unloaded" };
// https://mikewest.github.io/cors-rfc1918/#feature-detect
enum AddressSpace { "local", "private", "public" };
+typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
+
// https://dom.spec.whatwg.org/#interface-document
// FIXME: Document should have a constructor. crbug.com/238234
@@ -114,7 +116,7 @@ interface Document : Node {
[SameObject, Measure] readonly attribute HTMLCollection forms;
[SameObject, Measure] readonly attribute HTMLCollection scripts;
[PerWorldBindings] NodeList getElementsByName(DOMString elementName);
- [ImplementedAs=currentScriptForBinding] readonly attribute HTMLScriptElement? currentScript;
+ [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptElement? currentScript;
// dynamic markup insertion
// FIXME: There are two open() methods in the spec.

Powered by Google App Engine
This is Rietveld 408576698