| 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 22 matching lines...) Expand all Loading... |
| 33 , loaded(0) | 33 , loaded(0) |
| 34 , total(0) | 34 , total(0) |
| 35 { | 35 { |
| 36 } | 36 } |
| 37 | 37 |
| 38 ProgressEvent::ProgressEvent() | 38 ProgressEvent::ProgressEvent() |
| 39 : m_lengthComputable(false) | 39 : m_lengthComputable(false) |
| 40 , m_loaded(0) | 40 , m_loaded(0) |
| 41 , m_total(0) | 41 , m_total(0) |
| 42 { | 42 { |
| 43 ScriptWrappable::init(this); | |
| 44 } | 43 } |
| 45 | 44 |
| 46 ProgressEvent::ProgressEvent(const AtomicString& type, const ProgressEventInit&
initializer) | 45 ProgressEvent::ProgressEvent(const AtomicString& type, const ProgressEventInit&
initializer) |
| 47 : Event(type, initializer) | 46 : Event(type, initializer) |
| 48 , m_lengthComputable(initializer.lengthComputable) | 47 , m_lengthComputable(initializer.lengthComputable) |
| 49 , m_loaded(initializer.loaded) | 48 , m_loaded(initializer.loaded) |
| 50 , m_total(initializer.total) | 49 , m_total(initializer.total) |
| 51 { | 50 { |
| 52 ScriptWrappable::init(this); | |
| 53 } | 51 } |
| 54 | 52 |
| 55 ProgressEvent::ProgressEvent(const AtomicString& type, bool lengthComputable, un
signed long long loaded, unsigned long long total) | 53 ProgressEvent::ProgressEvent(const AtomicString& type, bool lengthComputable, un
signed long long loaded, unsigned long long total) |
| 56 : Event(type, false, true) | 54 : Event(type, false, true) |
| 57 , m_lengthComputable(lengthComputable) | 55 , m_lengthComputable(lengthComputable) |
| 58 , m_loaded(loaded) | 56 , m_loaded(loaded) |
| 59 , m_total(total) | 57 , m_total(total) |
| 60 { | 58 { |
| 61 ScriptWrappable::init(this); | |
| 62 } | 59 } |
| 63 | 60 |
| 64 const AtomicString& ProgressEvent::interfaceName() const | 61 const AtomicString& ProgressEvent::interfaceName() const |
| 65 { | 62 { |
| 66 return EventNames::ProgressEvent; | 63 return EventNames::ProgressEvent; |
| 67 } | 64 } |
| 68 | 65 |
| 69 void ProgressEvent::trace(Visitor* visitor) | 66 void ProgressEvent::trace(Visitor* visitor) |
| 70 { | 67 { |
| 71 Event::trace(visitor); | 68 Event::trace(visitor); |
| 72 } | 69 } |
| 73 | 70 |
| 74 } | 71 } |
| OLD | NEW |