| 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 80de18ae8ea834729597b1832bc49bf8d8f763af..9007394cea928f54107e772671fd1fdf9d5ceaae 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -295,7 +295,7 @@ void LocalDOMWindow::ClearDocument() {
|
| if (!document_)
|
| return;
|
|
|
| - ASSERT(!document_->IsActive());
|
| + DCHECK(!document_->IsActive());
|
|
|
| // FIXME: This should be part of SuspendableObject shutdown
|
| ClearEventQueue();
|
| @@ -464,7 +464,7 @@ void LocalDOMWindow::StatePopped(
|
|
|
| LocalDOMWindow::~LocalDOMWindow() {
|
| // Cleared when detaching document.
|
| - ASSERT(!event_queue_);
|
| + DCHECK(!event_queue_);
|
| }
|
|
|
| void LocalDOMWindow::Dispose() {
|
| @@ -529,7 +529,7 @@ void LocalDOMWindow::Reset() {
|
| }
|
|
|
| void LocalDOMWindow::SendOrientationChangeEvent() {
|
| - ASSERT(RuntimeEnabledFeatures::orientationEventEnabled());
|
| + DCHECK(RuntimeEnabledFeatures::orientationEventEnabled());
|
| DCHECK(GetFrame()->IsLocalRoot());
|
|
|
| // Before dispatching the event, build a list of all frames in the page
|
| @@ -552,7 +552,7 @@ void LocalDOMWindow::SendOrientationChangeEvent() {
|
| }
|
|
|
| int LocalDOMWindow::orientation() const {
|
| - ASSERT(RuntimeEnabledFeatures::orientationEventEnabled());
|
| + DCHECK(RuntimeEnabledFeatures::orientationEventEnabled());
|
|
|
| if (!GetFrame() || !GetFrame()->GetPage())
|
| return 0;
|
| @@ -1120,7 +1120,7 @@ void LocalDOMWindow::setName(const AtomicString& name) {
|
| return;
|
|
|
| GetFrame()->Tree().SetName(name);
|
| - ASSERT(GetFrame()->Loader().Client());
|
| + DCHECK(GetFrame()->Loader().Client());
|
| GetFrame()->Loader().Client()->DidChangeName(name);
|
| }
|
|
|
| @@ -1167,7 +1167,7 @@ StyleMedia* LocalDOMWindow::styleMedia() const {
|
| CSSStyleDeclaration* LocalDOMWindow::getComputedStyle(
|
| Element* elt,
|
| const String& pseudo_elt) const {
|
| - ASSERT(elt);
|
| + DCHECK(elt);
|
| return CSSComputedStyleDeclaration::Create(elt, false, pseudo_elt);
|
| }
|
|
|
|
|