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

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

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: mac fix Created 4 years 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 6a16bd65abd80b8516e48981e63ba8bc0fbb0567..1ac98c9fbccec165bb11b4260f2f8a2a414e3cee 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -485,7 +485,7 @@ Document::Document(const DocumentInit& initializer,
TaskRunnerHelper::get(TaskType::Internal, 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),
@@ -2488,11 +2488,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();

Powered by Google App Engine
This is Rietveld 408576698