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

Unified Diff: third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp

Issue 2709103002: Convert SMILTimeContainer timers to UnspecedTimer frame-specific timer. (Closed)
Patch Set: Convert SMILTimeContainer timers to Unspeced 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/svg/animation/SMILTimeContainer.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/svg/animation/SMILTimeContainer.cpp
diff --git a/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp b/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
index b644b0cff08edcbadcf3f71bf68bd9d61ad43d19..a87c533290e9d7ca15a5bb5728086ae4ade343fd 100644
--- a/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
+++ b/third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp
@@ -48,12 +48,15 @@ SMILTimeContainer::SMILTimeContainer(SVGSVGElement& owner)
m_started(false),
m_paused(false),
m_documentOrderIndexesDirty(false),
- m_wakeupTimer(this, &SMILTimeContainer::wakeupTimerFired),
- m_animationPolicyOnceTimer(this,
- &SMILTimeContainer::animationPolicyTimerFired),
- m_ownerSVGElement(&owner)
-{
-}
+ m_wakeupTimer(
+ TaskRunnerHelper::get(TaskType::UnspecedTimer, &owner.document()),
+ this,
+ &SMILTimeContainer::wakeupTimerFired),
+ m_animationPolicyOnceTimer(
+ TaskRunnerHelper::get(TaskType::UnspecedTimer, &owner.document()),
+ this,
+ &SMILTimeContainer::animationPolicyTimerFired),
+ m_ownerSVGElement(&owner) {}
SMILTimeContainer::~SMILTimeContainer() {
cancelAnimationFrame();
« no previous file with comments | « third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698