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

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

Issue 2344473002: Rename AnimationPlayerEvent as AnimationPlaybackEvent (Closed)
Patch Set: Make timelineTime nullable Created 4 years, 3 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
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 6a62e8e44bf1d3880208bd5e643433bf706adff3..b34fac998d20df5135d6d6c6536ca9d01492b56b 100644
--- a/third_party/WebKit/Source/core/animation/Animation.cpp
+++ b/third_party/WebKit/Source/core/animation/Animation.cpp
@@ -36,7 +36,7 @@
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/StyleChangeReason.h"
-#include "core/events/AnimationPlayerEvent.h"
+#include "core/events/AnimationPlaybackEvent.h"
#include "core/frame/UseCounter.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorTraceEvents.h"
@@ -835,7 +835,7 @@ bool Animation::update(TimingUpdateReason reason)
const AtomicString& eventType = EventTypeNames::cancel;
if (getExecutionContext() && hasEventListeners(eventType)) {
double eventCurrentTime = nullValue();
- m_pendingCancelledEvent = AnimationPlayerEvent::create(eventType, eventCurrentTime, timeline()->currentTime());
+ m_pendingCancelledEvent = AnimationPlaybackEvent::create(eventType, eventCurrentTime, timeline()->currentTime());
m_pendingCancelledEvent->setTarget(this);
m_pendingCancelledEvent->setCurrentTarget(this);
m_timeline->document()->enqueueAnimationFrameEvent(m_pendingCancelledEvent);
@@ -844,7 +844,7 @@ bool Animation::update(TimingUpdateReason reason)
const AtomicString& eventType = EventTypeNames::finish;
if (getExecutionContext() && hasEventListeners(eventType)) {
double eventCurrentTime = currentTimeInternal() * 1000;
- m_pendingFinishedEvent = AnimationPlayerEvent::create(eventType, eventCurrentTime, timeline()->currentTime());
+ m_pendingFinishedEvent = AnimationPlaybackEvent::create(eventType, eventCurrentTime, timeline()->currentTime());
m_pendingFinishedEvent->setTarget(this);
m_pendingFinishedEvent->setCurrentTarget(this);
m_timeline->document()->enqueueAnimationFrameEvent(m_pendingFinishedEvent);

Powered by Google App Engine
This is Rietveld 408576698