Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: third_party/WebKit/Source/core/events/ErrorEvent.cpp

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp ('k') | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698