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; |