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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 class HTMLBodyElement; 114 class HTMLBodyElement;
115 class HTMLCanvasElement; 115 class HTMLCanvasElement;
116 class HTMLCollection; 116 class HTMLCollection;
117 class HTMLDialogElement; 117 class HTMLDialogElement;
118 class HTMLElement; 118 class HTMLElement;
119 class HTMLFrameOwnerElement; 119 class HTMLFrameOwnerElement;
120 class HTMLHeadElement; 120 class HTMLHeadElement;
121 class HTMLImportLoader; 121 class HTMLImportLoader;
122 class HTMLImportsController; 122 class HTMLImportsController;
123 class HTMLLinkElement; 123 class HTMLLinkElement;
124 class HTMLScriptElement; 124 class HTMLScriptElementOrSVGScriptElement;
125 class HitTestRequest; 125 class HitTestRequest;
126 class IdleRequestCallback; 126 class IdleRequestCallback;
127 class IdleRequestOptions; 127 class IdleRequestOptions;
128 class InputDeviceCapabilities; 128 class InputDeviceCapabilities;
129 class IntersectionObserverController; 129 class IntersectionObserverController;
130 class LayoutPoint; 130 class LayoutPoint;
131 class LayoutViewItem; 131 class LayoutViewItem;
132 class LiveNodeListBase; 132 class LiveNodeListBase;
133 class Locale; 133 class Locale;
134 class LocalFrame; 134 class LocalFrame;
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 bool inDesignMode() const { return m_designMode; } 783 bool inDesignMode() const { return m_designMode; }
784 String designMode() const; 784 String designMode() const;
785 void setDesignMode(const String&); 785 void setDesignMode(const String&);
786 786
787 Document* parentDocument() const; 787 Document* parentDocument() const;
788 Document& topDocument() const; 788 Document& topDocument() const;
789 Document* contextDocument(); 789 Document* contextDocument();
790 790
791 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } 791 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
792 792
793 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; } 793 Element* currentScript() const { return !m_currentScriptStack.isEmpty() ? m_ currentScriptStack.last().get() : nullptr; }
794 HTMLScriptElement* currentScriptForBinding() const; 794 void currentScriptForBinding(HTMLScriptElementOrSVGScriptElement&) const;
795 void pushCurrentScript(HTMLScriptElement*); 795 void pushCurrentScript(Element*);
796 void popCurrentScript(); 796 void popCurrentScript();
797 797
798 void setTransformSource(PassOwnPtr<TransformSource>); 798 void setTransformSource(PassOwnPtr<TransformSource>);
799 TransformSource* transformSource() const { return m_transformSource.get(); } 799 TransformSource* transformSource() const { return m_transformSource.get(); }
800 800
801 void incDOMTreeVersion() { DCHECK(m_lifecycle.stateAllowsTreeMutations()); m _domTreeVersion = ++s_globalTreeVersion; } 801 void incDOMTreeVersion() { DCHECK(m_lifecycle.stateAllowsTreeMutations()); m _domTreeVersion = ++s_globalTreeVersion; }
802 uint64_t domTreeVersion() const { return m_domTreeVersion; } 802 uint64_t domTreeVersion() const { return m_domTreeVersion; }
803 803
804 uint64_t styleVersion() const { return m_styleVersion; } 804 uint64_t styleVersion() const { return m_styleVersion; }
805 805
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 Timer<Document> m_updateFocusAppearanceTimer; 1265 Timer<Document> m_updateFocusAppearanceTimer;
1266 1266
1267 Member<Element> m_cssTarget; 1267 Member<Element> m_cssTarget;
1268 1268
1269 LoadEventProgress m_loadEventProgress; 1269 LoadEventProgress m_loadEventProgress;
1270 1270
1271 double m_startTime; 1271 double m_startTime;
1272 1272
1273 Member<ScriptRunner> m_scriptRunner; 1273 Member<ScriptRunner> m_scriptRunner;
1274 1274
1275 HeapVector<Member<HTMLScriptElement>> m_currentScriptStack; 1275 HeapVector<Member<Element>> m_currentScriptStack;
1276 1276
1277 OwnPtr<TransformSource> m_transformSource; 1277 OwnPtr<TransformSource> m_transformSource;
1278 1278
1279 String m_xmlEncoding; 1279 String m_xmlEncoding;
1280 String m_xmlVersion; 1280 String m_xmlVersion;
1281 unsigned m_xmlStandalone : 2; 1281 unsigned m_xmlStandalone : 2;
1282 unsigned m_hasXMLDeclaration : 1; 1282 unsigned m_hasXMLDeclaration : 1;
1283 1283
1284 AtomicString m_contentLanguage; 1284 AtomicString m_contentLanguage;
1285 1285
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1434 1434
1435 } // namespace blink 1435 } // namespace blink
1436 1436
1437 #ifndef NDEBUG 1437 #ifndef NDEBUG
1438 // Outside the WebCore namespace for ease of invocation from gdb. 1438 // Outside the WebCore namespace for ease of invocation from gdb.
1439 CORE_EXPORT void showLiveDocumentInstances(); 1439 CORE_EXPORT void showLiveDocumentInstances();
1440 #endif 1440 #endif
1441 1441
1442 #endif // Document_h 1442 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698