OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 AnimationEventInit::AnimationEventInit() | 33 AnimationEventInit::AnimationEventInit() |
34 : animationName() | 34 : animationName() |
35 , elapsedTime(0.0) | 35 , elapsedTime(0.0) |
36 { | 36 { |
37 } | 37 } |
38 | 38 |
39 AnimationEvent::AnimationEvent() | 39 AnimationEvent::AnimationEvent() |
40 : m_elapsedTime(0.0) | 40 : m_elapsedTime(0.0) |
41 { | 41 { |
| 42 ScriptWrappable::init(this); |
42 } | 43 } |
43 | 44 |
44 AnimationEvent::AnimationEvent(const AtomicString& type, const AnimationEventIni
t& initializer) | 45 AnimationEvent::AnimationEvent(const AtomicString& type, const AnimationEventIni
t& initializer) |
45 : Event(type, initializer) | 46 : Event(type, initializer) |
46 , m_animationName(initializer.animationName) | 47 , m_animationName(initializer.animationName) |
47 , m_elapsedTime(initializer.elapsedTime) | 48 , m_elapsedTime(initializer.elapsedTime) |
48 { | 49 { |
| 50 ScriptWrappable::init(this); |
49 } | 51 } |
50 | 52 |
51 AnimationEvent::AnimationEvent(const AtomicString& type, const String& animation
Name, double elapsedTime) | 53 AnimationEvent::AnimationEvent(const AtomicString& type, const String& animation
Name, double elapsedTime) |
52 : Event(type, true, true) | 54 : Event(type, true, true) |
53 , m_animationName(animationName) | 55 , m_animationName(animationName) |
54 , m_elapsedTime(elapsedTime) | 56 , m_elapsedTime(elapsedTime) |
55 { | 57 { |
| 58 ScriptWrappable::init(this); |
56 } | 59 } |
57 | 60 |
58 AnimationEvent::~AnimationEvent() | 61 AnimationEvent::~AnimationEvent() |
59 { | 62 { |
60 } | 63 } |
61 | 64 |
62 const String& AnimationEvent::animationName() const | 65 const String& AnimationEvent::animationName() const |
63 { | 66 { |
64 return m_animationName; | 67 return m_animationName; |
65 } | 68 } |
66 | 69 |
67 double AnimationEvent::elapsedTime() const | 70 double AnimationEvent::elapsedTime() const |
68 { | 71 { |
69 return m_elapsedTime; | 72 return m_elapsedTime; |
70 } | 73 } |
71 | 74 |
72 const AtomicString& AnimationEvent::interfaceName() const | 75 const AtomicString& AnimationEvent::interfaceName() const |
73 { | 76 { |
74 return eventNames().interfaceForAnimationEvent; | 77 return eventNames().interfaceForAnimationEvent; |
75 } | 78 } |
76 | 79 |
77 } // namespace WebCore | 80 } // namespace WebCore |
OLD | NEW |