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

Unified Diff: third_party/WebKit/Source/core/animation/Animation.cpp

Issue 1422713012: Devtools Animations: Listen to all animation play state changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/animation/Animation.cpp
diff --git a/third_party/WebKit/Source/core/animation/Animation.cpp b/third_party/WebKit/Source/core/animation/Animation.cpp
index 758e2bc5ef68a04a992a474f1ad0a0b7cba1dc1c..5bfd50c07e0b5a022946330ec7f712dbaa71bc11 100644
--- a/third_party/WebKit/Source/core/animation/Animation.cpp
+++ b/third_party/WebKit/Source/core/animation/Animation.cpp
@@ -894,8 +894,6 @@ void Animation::cancel()
m_playState = Idle;
m_startTime = nullValue();
m_currentTimePending = false;
-
- InspectorInstrumentation::didCancelAnimation(m_timeline->document(), m_sequenceNumber);
}
void Animation::beginUpdatingState()
@@ -1057,8 +1055,8 @@ Animation::PlayStateUpdateScope::~PlayStateUpdateScope()
}
m_animation->endUpdatingState();
- if (oldPlayState != newPlayState && newPlayState == Running)
- InspectorInstrumentation::didStartAnimation(m_animation->timeline()->document(), m_animation);
+ if (oldPlayState != newPlayState)
+ InspectorInstrumentation::animationPlayStateChanged(m_animation->timeline()->document(), m_animation, oldPlayState, newPlayState);
}
bool Animation::addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& options)

Powered by Google App Engine
This is Rietveld 408576698