Backing out bug 448830
This commit is contained in:
@@ -5495,7 +5495,7 @@ nsDocShell::CaptureState()
|
||||
if (rootView) {
|
||||
nsIWidget *widget = rootView->GetWidget();
|
||||
if (widget) {
|
||||
nsIntRect bounds(0, 0, 0, 0);
|
||||
nsRect bounds(0, 0, 0, 0);
|
||||
widget->GetBounds(bounds);
|
||||
rv = mOSHE->SetViewerBounds(bounds);
|
||||
}
|
||||
@@ -5820,7 +5820,7 @@ nsDocShell::RestoreFromHistory()
|
||||
// bounds of the root view's widget.
|
||||
|
||||
nsIView *rootViewSibling = nsnull, *rootViewParent = nsnull;
|
||||
nsIntRect newBounds(0, 0, 0, 0);
|
||||
nsRect newBounds(0, 0, 0, 0);
|
||||
|
||||
nsCOMPtr<nsIPresShell> oldPresShell;
|
||||
nsDocShell::GetPresShell(getter_AddRefs(oldPresShell));
|
||||
@@ -5876,7 +5876,7 @@ nsDocShell::RestoreFromHistory()
|
||||
}
|
||||
|
||||
// get the previous content viewer size
|
||||
nsIntRect oldBounds(0, 0, 0, 0);
|
||||
nsRect oldBounds(0, 0, 0, 0);
|
||||
mLSHE->GetViewerBounds(oldBounds);
|
||||
|
||||
// Restore the refresh URI list. The refresh timers will be restarted
|
||||
@@ -6450,7 +6450,7 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
|
||||
nsCOMPtr<nsIWidget> widget;
|
||||
NS_ENSURE_SUCCESS(GetMainWidget(getter_AddRefs(widget)), NS_ERROR_FAILURE);
|
||||
|
||||
nsIntRect bounds(x, y, cx, cy);
|
||||
nsRect bounds(x, y, cx, cy);
|
||||
|
||||
if (NS_FAILED(mContentViewer->Init(widget, bounds))) {
|
||||
mContentViewer = nsnull;
|
||||
|
||||
Reference in New Issue
Block a user