| 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 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 TransitionEventInit::TransitionEventInit() | 32 TransitionEventInit::TransitionEventInit() |
| 33 : elapsedTime(0) | 33 : elapsedTime(0) |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 TransitionEvent::TransitionEvent() | 37 TransitionEvent::TransitionEvent() |
| 38 : m_elapsedTime(0) | 38 : m_elapsedTime(0) |
| 39 { | 39 { |
| 40 ScriptWrappable::init(this); | |
| 41 } | 40 } |
| 42 | 41 |
| 43 TransitionEvent::TransitionEvent(const AtomicString& type, const String& propert
yName, double elapsedTime) | 42 TransitionEvent::TransitionEvent(const AtomicString& type, const String& propert
yName, double elapsedTime) |
| 44 : Event(type, true, true) | 43 : Event(type, true, true) |
| 45 , m_propertyName(propertyName) | 44 , m_propertyName(propertyName) |
| 46 , m_elapsedTime(elapsedTime) | 45 , m_elapsedTime(elapsedTime) |
| 47 { | 46 { |
| 48 ScriptWrappable::init(this); | |
| 49 } | 47 } |
| 50 | 48 |
| 51 TransitionEvent::TransitionEvent(const AtomicString& type, const TransitionEvent
Init& initializer) | 49 TransitionEvent::TransitionEvent(const AtomicString& type, const TransitionEvent
Init& initializer) |
| 52 : Event(type, initializer) | 50 : Event(type, initializer) |
| 53 , m_propertyName(initializer.propertyName) | 51 , m_propertyName(initializer.propertyName) |
| 54 , m_elapsedTime(initializer.elapsedTime) | 52 , m_elapsedTime(initializer.elapsedTime) |
| 55 { | 53 { |
| 56 ScriptWrappable::init(this); | |
| 57 } | 54 } |
| 58 | 55 |
| 59 TransitionEvent::~TransitionEvent() | 56 TransitionEvent::~TransitionEvent() |
| 60 { | 57 { |
| 61 } | 58 } |
| 62 | 59 |
| 63 const String& TransitionEvent::propertyName() const | 60 const String& TransitionEvent::propertyName() const |
| 64 { | 61 { |
| 65 return m_propertyName; | 62 return m_propertyName; |
| 66 } | 63 } |
| 67 | 64 |
| 68 double TransitionEvent::elapsedTime() const | 65 double TransitionEvent::elapsedTime() const |
| 69 { | 66 { |
| 70 return m_elapsedTime; | 67 return m_elapsedTime; |
| 71 } | 68 } |
| 72 | 69 |
| 73 const AtomicString& TransitionEvent::interfaceName() const | 70 const AtomicString& TransitionEvent::interfaceName() const |
| 74 { | 71 { |
| 75 return EventNames::TransitionEvent; | 72 return EventNames::TransitionEvent; |
| 76 } | 73 } |
| 77 | 74 |
| 78 void TransitionEvent::trace(Visitor* visitor) | 75 void TransitionEvent::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 |