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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user