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) |