| Index: third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| index 3ce520e29d11f9218b229563efac151e4b206684..c5f9123abe5fcdfee1c1703cde0cd8c0a3483ff5 100644
|
| --- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
|
| @@ -34,9 +34,12 @@
|
|
|
| namespace blink {
|
|
|
| -DOMWindow::DOMWindow() : m_windowIsClosing(false) {}
|
| +DOMWindow::DOMWindow(Frame& frame) : m_frame(frame), m_windowIsClosing(false) {}
|
|
|
| -DOMWindow::~DOMWindow() {}
|
| +DOMWindow::~DOMWindow() {
|
| + // The frame must be disconnected before finalization.
|
| + DCHECK(!m_frame);
|
| +}
|
|
|
| v8::Local<v8::Object> DOMWindow::wrap(v8::Isolate*,
|
| v8::Local<v8::Object> creationContext) {
|
| @@ -432,6 +435,7 @@ void DOMWindow::focus(ExecutionContext* context) {
|
| }
|
|
|
| DEFINE_TRACE(DOMWindow) {
|
| + visitor->trace(m_frame);
|
| visitor->trace(m_location);
|
| EventTargetWithInlineData::trace(visitor);
|
| }
|
|
|