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

Side by Side Diff: Source/core/dom/Document.h

Issue 1312353004: (Reland) Make m_executeScriptsWaitingForResourcesTimer a loading task (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "core/fetch/ClientHintsPreferences.h" 50 #include "core/fetch/ClientHintsPreferences.h"
51 #include "core/frame/DOMTimerCoordinator.h" 51 #include "core/frame/DOMTimerCoordinator.h"
52 #include "core/frame/LocalDOMWindow.h" 52 #include "core/frame/LocalDOMWindow.h"
53 #include "core/frame/OriginsUsingFeatures.h" 53 #include "core/frame/OriginsUsingFeatures.h"
54 #include "core/html/CollectionType.h" 54 #include "core/html/CollectionType.h"
55 #include "core/html/parser/ParserSynchronizationPolicy.h" 55 #include "core/html/parser/ParserSynchronizationPolicy.h"
56 #include "core/page/PageVisibilityState.h" 56 #include "core/page/PageVisibilityState.h"
57 #include "platform/Length.h" 57 #include "platform/Length.h"
58 #include "platform/Timer.h" 58 #include "platform/Timer.h"
59 #include "platform/heap/Handle.h" 59 #include "platform/heap/Handle.h"
60 #include "platform/scheduler/CancellableTaskFactory.h"
60 #include "platform/weborigin/KURL.h" 61 #include "platform/weborigin/KURL.h"
61 #include "platform/weborigin/ReferrerPolicy.h" 62 #include "platform/weborigin/ReferrerPolicy.h"
62 #include "public/platform/WebFocusType.h" 63 #include "public/platform/WebFocusType.h"
63 #include "wtf/HashSet.h" 64 #include "wtf/HashSet.h"
64 #include "wtf/OwnPtr.h" 65 #include "wtf/OwnPtr.h"
65 #include "wtf/PassOwnPtr.h" 66 #include "wtf/PassOwnPtr.h"
66 #include "wtf/PassRefPtr.h" 67 #include "wtf/PassRefPtr.h"
67 #include "wtf/WeakPtr.h" 68 #include "wtf/WeakPtr.h"
68 69
69 namespace blink { 70 namespace blink {
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 KURL virtualCompleteURL(const String&) const final; // Same as completeURL() for the same reason as above. 1116 KURL virtualCompleteURL(const String&) const final; // Same as completeURL() for the same reason as above.
1116 1117
1117 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi nal; 1118 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi nal;
1118 1119
1119 double timerAlignmentInterval() const final; 1120 double timerAlignmentInterval() const final;
1120 1121
1121 void updateTitle(const String&); 1122 void updateTitle(const String&);
1122 void updateFocusAppearanceTimerFired(Timer<Document>*); 1123 void updateFocusAppearanceTimerFired(Timer<Document>*);
1123 void updateBaseURL(); 1124 void updateBaseURL();
1124 1125
1125 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*); 1126 void executeScriptsWaitingForResourcesTimerFired();
Sami 2015/09/01 09:31:35 s/TimerFired//?
alex clarke (OOO till 29th) 2015/09/01 09:37:57 Done.
1126 1127
1127 void loadEventDelayTimerFired(Timer<Document>*); 1128 void loadEventDelayTimerFired(Timer<Document>*);
1128 void pluginLoadingTimerFired(Timer<Document>*); 1129 void pluginLoadingTimerFired(Timer<Document>*);
1129 1130
1130 // Note that dispatching a window load event may cause the LocalDOMWindow to be detached from 1131 // Note that dispatching a window load event may cause the LocalDOMWindow to be detached from
1131 // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to 1132 // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to
1132 // prevent the Document from getting blown away from underneath them. 1133 // prevent the Document from getting blown away from underneath them.
1133 void dispatchWindowLoadEvent(); 1134 void dispatchWindowLoadEvent();
1134 1135
1135 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; } 1136 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 OwnPtrWillBeMember<DOMImplementation> m_implementation; 1191 OwnPtrWillBeMember<DOMImplementation> m_implementation;
1191 1192
1192 RefPtrWillBeMember<CSSStyleSheet> m_elemSheet; 1193 RefPtrWillBeMember<CSSStyleSheet> m_elemSheet;
1193 1194
1194 bool m_printing; 1195 bool m_printing;
1195 bool m_paginatedForScreen; 1196 bool m_paginatedForScreen;
1196 1197
1197 CompatibilityMode m_compatibilityMode; 1198 CompatibilityMode m_compatibilityMode;
1198 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual. 1199 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual.
1199 1200
1200 Timer<Document> m_executeScriptsWaitingForResourcesTimer; 1201 CancellableTaskFactory m_executeScriptsWaitingForResourcesTask;
1201 1202
1202 bool m_hasAutofocused; 1203 bool m_hasAutofocused;
1203 Timer<Document> m_clearFocusedElementTimer; 1204 Timer<Document> m_clearFocusedElementTimer;
1204 RefPtrWillBeMember<Element> m_autofocusElement; 1205 RefPtrWillBeMember<Element> m_autofocusElement;
1205 RefPtrWillBeMember<Element> m_focusedElement; 1206 RefPtrWillBeMember<Element> m_focusedElement;
1206 RefPtrWillBeMember<Node> m_hoverNode; 1207 RefPtrWillBeMember<Node> m_hoverNode;
1207 RefPtrWillBeMember<Element> m_activeHoverElement; 1208 RefPtrWillBeMember<Element> m_activeHoverElement;
1208 RefPtrWillBeMember<Element> m_documentElement; 1209 RefPtrWillBeMember<Element> m_documentElement;
1209 UserActionElementSet m_userActionElements; 1210 UserActionElementSet m_userActionElements;
1210 1211
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1432 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1432 1433
1433 } // namespace blink 1434 } // namespace blink
1434 1435
1435 #ifndef NDEBUG 1436 #ifndef NDEBUG
1436 // Outside the WebCore namespace for ease of invocation from gdb. 1437 // Outside the WebCore namespace for ease of invocation from gdb.
1437 CORE_EXPORT void showLiveDocumentInstances(); 1438 CORE_EXPORT void showLiveDocumentInstances();
1438 #endif 1439 #endif
1439 1440
1440 #endif // Document_h 1441 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698