From 56715facccd36abfee7a81fe8037fa8fdfd8d4b7 Mon Sep 17 00:00:00 2001 From: "michaelp%netscape.com" Date: Wed, 26 Aug 1998 21:24:19 +0000 Subject: [PATCH] killed viewmanager SetRootWindow() call. git-svn-id: svn://10.0.0.236/trunk@8552 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/src/nsPresShell.cpp | 5 ----- mozilla/webshell/src/nsDocumentViewer.cpp | 3 --- 2 files changed, 8 deletions(-) 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);