OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 ErrorEventInit::ErrorEventInit() | 38 ErrorEventInit::ErrorEventInit() |
39 : message() | 39 : message() |
40 , filename() | 40 , filename() |
41 , lineno(0) | 41 , lineno(0) |
42 { | 42 { |
43 } | 43 } |
44 | 44 |
45 ErrorEvent::ErrorEvent() | 45 ErrorEvent::ErrorEvent() |
46 { | 46 { |
| 47 ScriptWrappable::init(this); |
47 } | 48 } |
48 | 49 |
49 ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ
er) | 50 ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ
er) |
50 : Event(type, initializer) | 51 : Event(type, initializer) |
51 , m_message(initializer.message) | 52 , m_message(initializer.message) |
52 , m_fileName(initializer.filename) | 53 , m_fileName(initializer.filename) |
53 , m_lineNumber(initializer.lineno) | 54 , m_lineNumber(initializer.lineno) |
54 { | 55 { |
| 56 ScriptWrappable::init(this); |
55 } | 57 } |
56 | 58 |
57 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l
ineNumber) | 59 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l
ineNumber) |
58 : Event(eventNames().errorEvent, false, true) | 60 : Event(eventNames().errorEvent, false, true) |
59 , m_message(message) | 61 , m_message(message) |
60 , m_fileName(fileName) | 62 , m_fileName(fileName) |
61 , m_lineNumber(lineNumber) | 63 , m_lineNumber(lineNumber) |
62 { | 64 { |
| 65 ScriptWrappable::init(this); |
63 } | 66 } |
64 | 67 |
65 ErrorEvent::~ErrorEvent() | 68 ErrorEvent::~ErrorEvent() |
66 { | 69 { |
67 } | 70 } |
68 | 71 |
69 const AtomicString& ErrorEvent::interfaceName() const | 72 const AtomicString& ErrorEvent::interfaceName() const |
70 { | 73 { |
71 return eventNames().interfaceForErrorEvent; | 74 return eventNames().interfaceForErrorEvent; |
72 } | 75 } |
73 | 76 |
74 } // namespace WebCore | 77 } // namespace WebCore |
OLD | NEW |