Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
| index 0973ebc02c37956d9b0348d6c97bed8a8ae39ccc..e957e5b38f7ce497d99e110d1ce051afc714a0f9 100644 |
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
| @@ -376,7 +376,7 @@ void LocalDOMWindow::enqueueDocumentEvent(Event* event) { |
| } |
| void LocalDOMWindow::dispatchWindowLoadEvent() { |
| - ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| + DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
|
Alexander Alekseev
2016/11/18 22:32:15
isEventDispatchForbidden() is defined only if DCHE
|
| // Delay 'load' event if we are in EventQueueScope. This is a short-term |
| // workaround to avoid Editing code crashes. We should always dispatch |
| // 'load' event asynchronously. crbug.com/569511. |
| @@ -1419,7 +1419,7 @@ void LocalDOMWindow::dispatchLoadEvent() { |
| DispatchEventResult LocalDOMWindow::dispatchEvent(Event* event, |
| EventTarget* target) { |
| - ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| + DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| event->setTrusted(true); |
| event->setTarget(target ? target : this); |