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

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

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: +DISALLOW_COPY_AND_ASSIGN for win build fix Created 3 years, 11 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 f42226205775d7df98216f125d44c20a63f005cc..88aa46f43b773490e429cccde1d5e6dffe429eeb 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -487,7 +487,7 @@ Document::Document(const DocumentInit& initializer,
TaskRunnerHelper::get(TaskType::UnspecedLoading, this),
this,
&Document::didAssociateFormControlsTimerFired),
- m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()),
+ m_timers(TaskRunnerHelper::get(TaskType::Timer, this)),
m_hasViewportUnits(false),
m_parserSyncPolicy(AllowAsynchronousParsing),
m_nodeCount(0),
@@ -2501,11 +2501,8 @@ void Document::shutdown() {
clearImportsController();
}
- m_timers.setTimerTaskRunner(Platform::current()
- ->currentThread()
- ->scheduler()
- ->timerTaskRunner()
- ->clone());
+ m_timers.setTimerTaskRunner(
+ Platform::current()->currentThread()->scheduler()->timerTaskRunner());
if (m_mediaQueryMatcher)
m_mediaQueryMatcher->documentDetached();
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698