| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 ErrorEvent::ErrorEvent(const String& message, std::unique_ptr<SourceLocation> lo
cation, DOMWrapperWorld* world) | 62 ErrorEvent::ErrorEvent(const String& message, std::unique_ptr<SourceLocation> lo
cation, DOMWrapperWorld* world) |
| 63 : Event(EventTypeNames::error, false, true) | 63 : Event(EventTypeNames::error, false, true) |
| 64 , m_sanitizedMessage(message) | 64 , m_sanitizedMessage(message) |
| 65 , m_location(std::move(location)) | 65 , m_location(std::move(location)) |
| 66 , m_world(world) | 66 , m_world(world) |
| 67 { | 67 { |
| 68 } | 68 } |
| 69 | 69 |
| 70 void ErrorEvent::setUnsanitizedMessage(const String& message) | 70 void ErrorEvent::setUnsanitizedMessage(const String& message) |
| 71 { | 71 { |
| 72 ASSERT(m_unsanitizedMessage.isEmpty()); | 72 DCHECK(m_unsanitizedMessage.isEmpty()); |
| 73 m_unsanitizedMessage = message; | 73 m_unsanitizedMessage = message; |
| 74 } | 74 } |
| 75 | 75 |
| 76 ErrorEvent::~ErrorEvent() | 76 ErrorEvent::~ErrorEvent() |
| 77 { | 77 { |
| 78 } | 78 } |
| 79 | 79 |
| 80 const AtomicString& ErrorEvent::interfaceName() const | 80 const AtomicString& ErrorEvent::interfaceName() const |
| 81 { | 81 { |
| 82 return EventNames::ErrorEvent; | 82 return EventNames::ErrorEvent; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 94 return ScriptValue(); | 94 return ScriptValue(); |
| 95 return m_error; | 95 return m_error; |
| 96 } | 96 } |
| 97 | 97 |
| 98 DEFINE_TRACE(ErrorEvent) | 98 DEFINE_TRACE(ErrorEvent) |
| 99 { | 99 { |
| 100 Event::trace(visitor); | 100 Event::trace(visitor); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |