diff --git a/mozilla/layout/base/src/nsPresShell.cpp b/mozilla/layout/base/src/nsPresShell.cpp index e517b80fb3c..cec5b973958 100644 --- a/mozilla/layout/base/src/nsPresShell.cpp +++ b/mozilla/layout/base/src/nsPresShell.cpp @@ -1021,11 +1021,6 @@ PresShell::VerifyIncrementalReflow() // Setup hierarchical relationship in view manager vm->SetRootView(view); - nsIWidget* window = view->GetWidget(); - if (window) { - vm->SetRootWindow(window); - NS_RELEASE(window); - } // Make the new presentation context the same size as our // presentation context. diff --git a/mozilla/webshell/src/nsDocumentViewer.cpp b/mozilla/webshell/src/nsDocumentViewer.cpp index 6a34b174093..d0d12e0beb4 100644 --- a/mozilla/webshell/src/nsDocumentViewer.cpp +++ b/mozilla/webshell/src/nsDocumentViewer.cpp @@ -524,9 +524,6 @@ nsresult DocumentViewerImpl::MakeWindow(nsNativeWidget aNativeParent, // Setup hierarchical relationship in view manager mViewManager->SetRootView(mView); mWindow = mView->GetWidget(); - if (nsnull != mWindow) { - mViewManager->SetRootWindow(mWindow); - } //set frame rate to 25 fps mViewManager->SetFrameRate(25);