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

Unified Diff: third_party/WebKit/Source/core/events/ScopedEventQueue.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/ScopedEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp b/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp
index ea6b55359b9a0224e21c460c872176902dd7c418..521d5d400b66208ac7538a9788a8b317e9084e51 100644
--- a/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp
+++ b/third_party/WebKit/Source/core/events/ScopedEventQueue.cpp
@@ -48,13 +48,13 @@ ScopedEventQueue::ScopedEventQueue()
ScopedEventQueue::~ScopedEventQueue()
{
- ASSERT(!m_scopingLevel);
- ASSERT(!m_queuedEventDispatchMediators.size());
+ DCHECK(!m_scopingLevel);
+ DCHECK(!m_queuedEventDispatchMediators.size());
}
void ScopedEventQueue::initialize()
{
- ASSERT(!s_instance);
+ DCHECK(!s_instance);
std::unique_ptr<ScopedEventQueue> instance = wrapUnique(new ScopedEventQueue);
s_instance = instance.release();
}
@@ -78,7 +78,7 @@ void ScopedEventQueue::dispatchAllEvents()
void ScopedEventQueue::dispatchEvent(EventDispatchMediator* mediator) const
{
- ASSERT(mediator->event().target());
+ DCHECK(mediator->event().target());
Node* node = mediator->event().target()->toNode();
EventDispatcher::dispatchEvent(*node, mediator);
}
@@ -98,7 +98,7 @@ void ScopedEventQueue::incrementScopingLevel()
void ScopedEventQueue::decrementScopingLevel()
{
- ASSERT(m_scopingLevel);
+ DCHECK(m_scopingLevel);
m_scopingLevel--;
if (!m_scopingLevel)
dispatchAllEvents();

Powered by Google App Engine
This is Rietveld 408576698