Bug 233441. Make nsViewManager always have a root view, you can't change it. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@156019 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2004-05-06 03:17:14 +00:00
parent b9b2c207c9
commit 1eea5c536c
35 changed files with 114 additions and 414 deletions

View File

@@ -1766,10 +1766,7 @@ nsObjectFrame::Paint(nsIPresContext* aPresContext,
// first, lets find out how big the window is, in pixels
nsIViewManager* vm = aPresContext->GetViewManager();
if (vm) {
nsIView* view;
vm->GetRootView(view);
if (view) {
nsIWidget* win = view->GetWidget();
nsIWidget* win = vm->RootView()->GetWidget();
if (win) {
nsRect visibleRect;
win->GetBounds(visibleRect);
@@ -1802,7 +1799,6 @@ nsObjectFrame::Paint(nsIPresContext* aPresContext,
}
}
}
}
#endif
inst->SetWindow(window);