| 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 1250ed12777b73ff166f44ffc5fe84f57b024122..736aae73a8f3a3c1a809e9315ff5e00dd9f8412c 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -498,9 +498,7 @@ void LocalDOMWindow::registerEventListenerObserver(
|
|
|
| void LocalDOMWindow::reset() {
|
| DCHECK(document());
|
| - // Since |Document| class has multiple |LifecycleNotifier| as base class,
|
| - // we need to have |static_cast<ExecutionContext>| here.
|
| - static_cast<ExecutionContext*>(document())->notifyContextDestroyed();
|
| + DCHECK(document()->isContextDestroyed());
|
| frameDestroyed();
|
|
|
| m_screen = nullptr;
|
|
|