| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 WebKitAnimationEventInit::WebKitAnimationEventInit() | 31 WebKitAnimationEventInit::WebKitAnimationEventInit() |
| 32 : animationName() | 32 : animationName() |
| 33 , elapsedTime(0.0) | 33 , elapsedTime(0.0) |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 WebKitAnimationEvent::WebKitAnimationEvent() | 37 WebKitAnimationEvent::WebKitAnimationEvent() |
| 38 : m_elapsedTime(0.0) | 38 : m_elapsedTime(0.0) |
| 39 { | 39 { |
| 40 ScriptWrappable::init(this); | |
| 41 } | 40 } |
| 42 | 41 |
| 43 WebKitAnimationEvent::WebKitAnimationEvent(const AtomicString& type, const WebKi
tAnimationEventInit& initializer) | 42 WebKitAnimationEvent::WebKitAnimationEvent(const AtomicString& type, const WebKi
tAnimationEventInit& initializer) |
| 44 : Event(type, initializer) | 43 : Event(type, initializer) |
| 45 , m_animationName(initializer.animationName) | 44 , m_animationName(initializer.animationName) |
| 46 , m_elapsedTime(initializer.elapsedTime) | 45 , m_elapsedTime(initializer.elapsedTime) |
| 47 { | 46 { |
| 48 ScriptWrappable::init(this); | |
| 49 } | 47 } |
| 50 | 48 |
| 51 WebKitAnimationEvent::WebKitAnimationEvent(const AtomicString& type, const Strin
g& animationName, double elapsedTime) | 49 WebKitAnimationEvent::WebKitAnimationEvent(const AtomicString& type, const Strin
g& animationName, double elapsedTime) |
| 52 : Event(type, true, true) | 50 : Event(type, true, true) |
| 53 , m_animationName(animationName) | 51 , m_animationName(animationName) |
| 54 , m_elapsedTime(elapsedTime) | 52 , m_elapsedTime(elapsedTime) |
| 55 { | 53 { |
| 56 ScriptWrappable::init(this); | |
| 57 } | 54 } |
| 58 | 55 |
| 59 WebKitAnimationEvent::~WebKitAnimationEvent() | 56 WebKitAnimationEvent::~WebKitAnimationEvent() |
| 60 { | 57 { |
| 61 } | 58 } |
| 62 | 59 |
| 63 const String& WebKitAnimationEvent::animationName() const | 60 const String& WebKitAnimationEvent::animationName() const |
| 64 { | 61 { |
| 65 return m_animationName; | 62 return m_animationName; |
| 66 } | 63 } |
| 67 | 64 |
| 68 double WebKitAnimationEvent::elapsedTime() const | 65 double WebKitAnimationEvent::elapsedTime() const |
| 69 { | 66 { |
| 70 return m_elapsedTime; | 67 return m_elapsedTime; |
| 71 } | 68 } |
| 72 | 69 |
| 73 const AtomicString& WebKitAnimationEvent::interfaceName() const | 70 const AtomicString& WebKitAnimationEvent::interfaceName() const |
| 74 { | 71 { |
| 75 return EventNames::WebKitAnimationEvent; | 72 return EventNames::WebKitAnimationEvent; |
| 76 } | 73 } |
| 77 | 74 |
| 78 void WebKitAnimationEvent::trace(Visitor* visitor) | 75 void WebKitAnimationEvent::trace(Visitor* visitor) |
| 79 { | 76 { |
| 80 Event::trace(visitor); | 77 Event::trace(visitor); |
| 81 } | 78 } |
| 82 | 79 |
| 83 } // namespace blink | 80 } // namespace blink |
| OLD | NEW |