| 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();
|
|
|