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

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

Issue 2684633005: Move VTTRegion Timers to TaskRunnerTimer (Closed)
Patch Set: use UnspecedTimer 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..7a06a99f369f5846b43fcca38f98c6c1ef1fb7a1 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
@@ -36,6 +36,7 @@
#include "core/dom/DOMTokenList.h"
#include "core/dom/ElementTraversal.h"
#include "core/dom/ExceptionCode.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/html/HTMLDivElement.h"
#include "core/html/track/vtt/VTTParser.h"
#include "core/html/track/vtt/VTTScanner.h"
@@ -90,7 +91,10 @@ VTTRegion::VTTRegion()
m_viewportAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY)),
m_scroll(defaultScroll),
m_currentTop(0),
- m_scrollTimer(this, &VTTRegion::scrollTimerFired) {}
+ m_scrollTimer(
+ TaskRunnerHelper::get(TaskType::UnspecedTimer, (Document*)nullptr),
maksims (do not use this acc) 2017/02/14 08:28:58 What about this solution? I've tested it and it se
foolip 2017/02/14 13:37:09 The cast is a little suspicious. Does just nullptr
maksims (do not use this acc) 2017/02/16 06:44:05 Check TaskRunnerHelper::get(). It's an overloaded
foolip 2017/02/16 07:46:09 From cs.chromium.org at a glance, I can't find any
maksims (do not use this acc) 2017/02/16 09:16:22 Done.
+ 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