Chromium Code Reviews| 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..1fd3cd02cf5ce140e9541f674c9226160581604b 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; |
| @@ -176,6 +176,8 @@ struct AnnotatedRegionValue; |
| struct FocusParams; |
| struct IconURL; |
| +typedef HTMLScriptElementOrSVGScriptElement ScriptElement; |
|
fs
2016/05/03 10:56:01
With the below adressed I don't think this serves
ramya.v
2016/05/04 04:18:41
Done.
|
| + |
| using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent>; |
| using ExceptionCode = int; |
| @@ -790,9 +792,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(ScriptElement&) const; |
| + void pushCurrentScript(const ScriptElement&); |
|
fs
2016/05/03 10:56:01
I think I would prefer that the "internal" part of
ramya.v
2016/05/04 04:18:41
Done.
|
| void popCurrentScript(); |
| void setTransformSource(PassOwnPtr<TransformSource>); |
| @@ -1272,7 +1274,7 @@ private: |
| Member<ScriptRunner> m_scriptRunner; |
| - HeapVector<Member<HTMLScriptElement>> m_currentScriptStack; |
| + HeapVector<Member<Element>> m_currentScriptStack; |
| OwnPtr<TransformSource> m_transformSource; |