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

Unified Diff: third_party/WebKit/Source/core/events/RegisteredEventListener.h

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/RegisteredEventListener.h
diff --git a/third_party/WebKit/Source/core/events/RegisteredEventListener.h b/third_party/WebKit/Source/core/events/RegisteredEventListener.h
index b2ff7d2d33aa91e2de8f90f9ba844dd1bd18d9ed..db4d849efb58b5f14ee827144f5b58f44a0acbd0 100644
--- a/third_party/WebKit/Source/core/events/RegisteredEventListener.h
+++ b/third_party/WebKit/Source/core/events/RegisteredEventListener.h
@@ -102,16 +102,16 @@ public:
bool matches(const EventListener* listener, const EventListenerOptions& options) const
{
// Equality is soley based on the listener and useCapture flags.
- ASSERT(m_listener);
- ASSERT(listener);
+ DCHECK(m_listener);
+ DCHECK(listener);
return *m_listener == *listener && static_cast<bool>(m_useCapture) == options.capture();
}
bool operator==(const RegisteredEventListener& other) const
{
// Equality is soley based on the listener and useCapture flags.
- ASSERT(m_listener);
- ASSERT(other.m_listener);
+ DCHECK(m_listener);
+ DCHECK(other.m_listener);
return *m_listener == *other.m_listener && m_useCapture == other.m_useCapture;
}

Powered by Google App Engine
This is Rietveld 408576698