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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 : Event(type, initializer) | 53 : Event(type, initializer) |
54 , m_sanitizedMessage(initializer.message) | 54 , m_sanitizedMessage(initializer.message) |
55 , m_fileName(initializer.filename) | 55 , m_fileName(initializer.filename) |
56 , m_lineNumber(initializer.lineno) | 56 , m_lineNumber(initializer.lineno) |
57 , m_columnNumber(initializer.colno) | 57 , m_columnNumber(initializer.colno) |
58 , m_world(DOMWrapperWorld::current(v8::Isolate::GetCurrent())) | 58 , m_world(DOMWrapperWorld::current(v8::Isolate::GetCurrent())) |
59 { | 59 { |
60 ScriptWrappable::init(this); | 60 ScriptWrappable::init(this); |
61 } | 61 } |
62 | 62 |
63 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l
ineNumber, unsigned columnNumber, PassRefPtr<DOMWrapperWorld> world) | 63 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l
ineNumber, unsigned columnNumber, DOMWrapperWorld* world) |
64 : Event(EventTypeNames::error, false, true) | 64 : Event(EventTypeNames::error, false, true) |
65 , m_sanitizedMessage(message) | 65 , m_sanitizedMessage(message) |
66 , m_fileName(fileName) | 66 , m_fileName(fileName) |
67 , m_lineNumber(lineNumber) | 67 , m_lineNumber(lineNumber) |
68 , m_columnNumber(columnNumber) | 68 , m_columnNumber(columnNumber) |
69 , m_world(world) | 69 , m_world(world) |
70 { | 70 { |
71 ScriptWrappable::init(this); | 71 ScriptWrappable::init(this); |
72 } | 72 } |
73 | 73 |
(...skipping 11 matching lines...) Expand all Loading... |
85 { | 85 { |
86 return EventNames::ErrorEvent; | 86 return EventNames::ErrorEvent; |
87 } | 87 } |
88 | 88 |
89 void ErrorEvent::trace(Visitor* visitor) | 89 void ErrorEvent::trace(Visitor* visitor) |
90 { | 90 { |
91 Event::trace(visitor); | 91 Event::trace(visitor); |
92 } | 92 } |
93 | 93 |
94 } // namespace WebCore | 94 } // namespace WebCore |
OLD | NEW |