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

Unified Diff: Source/core/events/AnimationEvent.cpp

Issue 1158233004: Sync the AnimationEvent and TransitionEvent interfaces with the specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TransitionEvent too Created 5 years, 7 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 | « no previous file | Source/core/events/AnimationEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/AnimationEvent.cpp
diff --git a/Source/core/events/AnimationEvent.cpp b/Source/core/events/AnimationEvent.cpp
index e9423ce9a74d7f007f19c781e4ef5eb87e3086c4..40885920c275ccc2f6e13b39afd7005f8bde8df6 100644
--- a/Source/core/events/AnimationEvent.cpp
+++ b/Source/core/events/AnimationEvent.cpp
@@ -35,12 +35,9 @@ AnimationEvent::AnimationEvent()
AnimationEvent::AnimationEvent(const AtomicString& type, const AnimationEventInit& initializer)
: Event(type, initializer)
- , m_elapsedTime(0.0)
+ , m_animationName(initializer.animationName())
+ , m_elapsedTime(initializer.elapsedTime())
{
- if (initializer.hasAnimationName())
- m_animationName = initializer.animationName();
- if (initializer.hasElapsedTime())
- m_elapsedTime = initializer.elapsedTime();
}
AnimationEvent::AnimationEvent(const AtomicString& type, const String& animationName, double elapsedTime)
« no previous file with comments | « no previous file | Source/core/events/AnimationEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698