OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/events/AnimationPlayerEvent.h" | 5 #include "core/events/AnimationPlayerEvent.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 AnimationPlayerEvent::AnimationPlayerEvent() | |
10 : m_currentTime(0.0) | |
11 , m_timelineTime(0.0) | |
12 { | |
13 } | |
14 | |
15 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double curr
entTime, double timelineTime) | 9 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double curr
entTime, double timelineTime) |
16 : Event(type, false, false) | 10 : Event(type, false, false) |
17 , m_currentTime(currentTime) | 11 , m_currentTime(currentTime) |
18 , m_timelineTime(timelineTime) | 12 , m_timelineTime(timelineTime) |
19 { | 13 { |
20 } | 14 } |
21 | 15 |
22 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const Anima
tionPlayerEventInit& initializer) | 16 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const Anima
tionPlayerEventInit& initializer) |
23 : Event(type, initializer) | 17 : Event(type, initializer) |
24 , m_currentTime(0.0) | 18 , m_currentTime(0.0) |
(...skipping 30 matching lines...) Expand all Loading... |
55 { | 49 { |
56 return EventNames::AnimationPlayerEvent; | 50 return EventNames::AnimationPlayerEvent; |
57 } | 51 } |
58 | 52 |
59 DEFINE_TRACE(AnimationPlayerEvent) | 53 DEFINE_TRACE(AnimationPlayerEvent) |
60 { | 54 { |
61 Event::trace(visitor); | 55 Event::trace(visitor); |
62 } | 56 } |
63 | 57 |
64 } // namespace blink | 58 } // namespace blink |
OLD | NEW |