WeakPtrFactory should populate m_ref lazily.
[WebKit-https.git] / Source / WebCore / page / DOMWindow.cpp
index 92f5b90..87ba9d8 100644 (file)
@@ -394,7 +394,6 @@ void DOMWindow::setCanShowModalDialogOverride(bool allow)
 DOMWindow::DOMWindow(Document& document)
     : ContextDestructionObserver(&document)
     , FrameDestructionObserver(document.frame())
-    , m_weakPtrFactory(this)
 {
     ASSERT(frame());
     addLanguageChangeObserver(this, &languagesChangedCallback);