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

Unified Diff: third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp

Issue 2713553003: Convert SpinButtonElement timer to UnspecedTimer frame-specific timer. (Closed)
Patch Set: Convert SpinButtonElement timer to UnspecedTimer frame-specific timer. 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/shadow/SpinButtonElement.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/shadow/SpinButtonElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp b/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
index a909ce4746cc7fbac7fcefea4a023732a7a030d9..190097f9d642358af59c7ac037d2c74095a3fcae 100644
--- a/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
@@ -27,6 +27,7 @@
#include "core/html/shadow/SpinButtonElement.h"
#include "core/HTMLNames.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/MouseEvent.h"
#include "core/events/WheelEvent.h"
#include "core/frame/LocalFrame.h"
@@ -48,7 +49,10 @@ inline SpinButtonElement::SpinButtonElement(Document& document,
m_capturing(false),
m_upDownState(Indeterminate),
m_pressStartingState(Indeterminate),
- m_repeatingTimer(this, &SpinButtonElement::repeatingTimerFired) {}
+ m_repeatingTimer(
+ TaskRunnerHelper::get(TaskType::UnspecedTimer, &document),
+ this,
+ &SpinButtonElement::repeatingTimerFired) {}
SpinButtonElement* SpinButtonElement::create(Document& document,
SpinButtonOwner& spinButtonOwner) {
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/SpinButtonElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698