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

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

Issue 2430513003: Move some Document timers to frame-specific task runners. (Closed)
Patch Set: Remove FrameTimer 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3d38bd6d0db07fa38e392fd7846bc2e89b230393..fb5e790a8c09fd95a80a73528261f1b449f9b998 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -469,8 +469,12 @@ 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(TaskRunnerHelper::get(TaskType::Networking, this),
+ this,
+ &Document::loadEventDelayTimerFired),
+ m_pluginLoadingTimer(TaskRunnerHelper::get(TaskType::Internal, this),
+ this,
+ &Document::pluginLoadingTimerFired),
m_documentTiming(*this),
m_writeRecursionIsTooDeep(false),
m_writeRecursionDepth(0),
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698