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

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

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.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index e102c0b0955a2c01c4bc8865f61e7e256c8929be..013f3c2b17054f032a62e064cb3a8f9d3421ed3a 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -121,7 +121,7 @@ class HTMLHeadElement;
class HTMLImportLoader;
class HTMLImportsController;
class HTMLLinkElement;
-class HTMLScriptElement;
+class HTMLScriptElementOrSVGScriptElement;
class HitTestRequest;
class IdleRequestCallback;
class IdleRequestOptions;
@@ -790,9 +790,9 @@ public:
ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
- HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEmpty() ? m_currentScriptStack.last().get() : nullptr; }
- HTMLScriptElement* currentScriptForBinding() const;
- void pushCurrentScript(HTMLScriptElement*);
+ Element* currentScript() const { return !m_currentScriptStack.isEmpty() ? m_currentScriptStack.last().get() : nullptr; }
+ void currentScriptForBinding(HTMLScriptElementOrSVGScriptElement&) const;
+ void pushCurrentScript(Element*);
void popCurrentScript();
void setTransformSource(PassOwnPtr<TransformSource>);
@@ -1272,7 +1272,7 @@ private:
Member<ScriptRunner> m_scriptRunner;
- HeapVector<Member<HTMLScriptElement>> m_currentScriptStack;
+ HeapVector<Member<Element>> m_currentScriptStack;
OwnPtr<TransformSource> m_transformSource;

Powered by Google App Engine
This is Rietveld 408576698