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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutProgress.cpp

Issue 2650033002: Move LayoutProgress timer to UnspecedTimer task source. (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/core/layout/LayoutProgress.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/layout/LayoutProgress.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutProgress.cpp b/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
index acee022e4f7aa8d2f977414bd790e9832e15424a..51bef297aa1e1e53c7eb9845178f375c8064c676 100644
--- a/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
@@ -20,6 +20,7 @@
#include "core/layout/LayoutProgress.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/html/HTMLProgressElement.h"
#include "core/layout/LayoutTheme.h"
#include "wtf/CurrentTime.h"
@@ -34,7 +35,10 @@ LayoutProgress::LayoutProgress(HTMLProgressElement* element)
m_animationRepeatInterval(0),
m_animationDuration(0),
m_animating(false),
- m_animationTimer(this, &LayoutProgress::animationTimerFired) {}
+ m_animationTimer(
+ TaskRunnerHelper::get(TaskType::UnspecedTimer, &element->document()),
+ this,
+ &LayoutProgress::animationTimerFired) {}
LayoutProgress::~LayoutProgress() {}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutProgress.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698