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

Unified Diff: third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm

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/platform/mac/ScrollAnimatorMac.mm
diff --git a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
index fa1161ce4499b34ba90d1509d2fb4472accbd9b4..11785abc54cefbf8ead49f9528d9dc43e63bee21 100644
--- a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
+++ b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
@@ -692,11 +692,8 @@ ScrollAnimatorBase* ScrollAnimatorBase::create(ScrollableArea* scrollableArea) {
ScrollAnimatorMac::ScrollAnimatorMac(ScrollableArea* scrollableArea)
: ScrollAnimatorBase(scrollableArea),
- m_taskRunner(Platform::current()
- ->currentThread()
- ->scheduler()
- ->timerTaskRunner()
- ->clone()),
+ m_taskRunner(
+ Platform::current()->currentThread()->scheduler()->timerTaskRunner()),
m_haveScrolledSincePageLoad(false),
m_needsScrollerStyleUpdate(false) {
ThreadState::current()->registerPreFinalizer(this);

Powered by Google App Engine
This is Rietveld 408576698