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

Unified Diff: third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp

Issue 2684633005: Move VTTRegion Timers to TaskRunnerTimer (Closed)
Patch Set: Move VTTRegion Timers to TaskRunnerTimer Created 3 years, 10 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/html/track/vtt/VTTRegion.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/html/track/vtt/VTTRegion.cpp
diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp b/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
index bf9b0addd00e247e7956e12fe32ff423a8cddc72..68ba34cff50109b896eead4d1030655559bd2124 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
@@ -39,6 +39,7 @@
#include "core/html/HTMLDivElement.h"
#include "core/html/track/vtt/VTTParser.h"
#include "core/html/track/vtt/VTTScanner.h"
+#include "public/platform/Platform.h"
#include "wtf/MathExtras.h"
#define VTT_LOG_LEVEL 3
@@ -90,7 +91,9 @@ VTTRegion::VTTRegion()
m_viewportAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY)),
m_scroll(defaultScroll),
m_currentTop(0),
- m_scrollTimer(this, &VTTRegion::scrollTimerFired) {}
+ m_scrollTimer(Platform::current()->currentThread()->getWebTaskRunner(),
+ this,
+ &VTTRegion::scrollTimerFired) {}
VTTRegion::~VTTRegion() {}
« no previous file with comments | « third_party/WebKit/Source/core/html/track/vtt/VTTRegion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698