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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 2645973004: Have Scrollbar's timer use the same task runner as its scrollable area. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.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/platform/scroll/Scrollbar.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
index d724c213eb95b9f323e6afc725ab533cd587c2aa..442518dddee6974852613a46f01171f49f61776f 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
@@ -58,7 +58,9 @@ Scrollbar::Scrollbar(ScrollableArea* scrollableArea,
m_draggingDocument(false),
m_documentDragPos(0),
m_enabled(true),
- m_scrollTimer(this, &Scrollbar::autoscrollTimerFired),
+ m_scrollTimer(scrollableArea->getTimerTaskRunner(),
+ this,
+ &Scrollbar::autoscrollTimerFired),
m_elasticOverscroll(0),
m_trackNeedsRepaint(true),
m_thumbNeedsRepaint(true) {
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698