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

Unified 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: Add #if ENABLE(OILPAN) 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 8dfb0ea6d6f06a78606cf5b6ddb261276214b16a..a4602cdc632b4490325378160a52cac94cb26b19 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -57,6 +57,7 @@
#include "platform/Length.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
+#include "platform/scheduler/CancellableTaskFactory.h"
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/ReferrerPolicy.h"
#include "public/platform/WebFocusType.h"
@@ -1122,7 +1123,7 @@ private:
void updateFocusAppearanceTimerFired(Timer<Document>*);
void updateBaseURL();
- void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*);
+ void executeScriptsWaitingForResources();
void loadEventDelayTimerFired(Timer<Document>*);
void pluginLoadingTimerFired(Timer<Document>*);
@@ -1197,7 +1198,7 @@ private:
CompatibilityMode m_compatibilityMode;
bool m_compatibilityModeLocked; // This is cheaper than making setCompatibilityMode virtual.
- Timer<Document> m_executeScriptsWaitingForResourcesTimer;
+ CancellableTaskFactory m_executeScriptsWaitingForResourcesTask;
bool m_hasAutofocused;
Timer<Document> m_clearFocusedElementTimer;
« 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