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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2430513003: Move some Document timers to frame-specific task runners. (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 88e8ddba1d5c4b64bf97c45c03775722e611459a..62bafdaad655774ef1ca22410931940195abdcd8 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -476,8 +476,14 @@ Document::Document(const DocumentInit& initializer,
m_contextDocument(initializer.contextDocument()),
m_hasFullscreenSupplement(false),
m_loadEventDelayCount(0),
- m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired),
- m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired),
+ m_loadEventDelayTimer(TaskType::Networking,
+ this,
dcheng 2016/10/19 00:08:39 This look a bit weird... but I don't have better i
+ this,
+ &Document::loadEventDelayTimerFired),
+ m_pluginLoadingTimer(TaskType::Embed,
dcheng 2016/10/19 00:08:38 I'm not really sure if this is the right task queu
haraken 2016/10/19 03:07:47 Maybe this is not a speced task? If so we could us
dcheng 2016/10/19 03:47:44 Done.
+ this,
+ this,
+ &Document::pluginLoadingTimerFired),
m_documentTiming(*this),
m_writeRecursionIsTooDeep(false),
m_writeRecursionDepth(0),

Powered by Google App Engine
This is Rietveld 408576698