mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Removed ForceRefresh call
This commit is contained in:
parent
16d7855b70
commit
9485365e34
@ -280,6 +280,7 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
|
||||
{
|
||||
nsresult rv;
|
||||
nsRect bounds;
|
||||
nscoord width, height;
|
||||
|
||||
NS_PRECONDITION(nsnull != aPresContext, "null ptr");
|
||||
NS_PRECONDITION(nsnull != aDocument, "null ptr");
|
||||
@ -342,17 +343,14 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
|
||||
goto done;
|
||||
}
|
||||
|
||||
// Now that we have a presentation shell trigger a reflow so we
|
||||
// create a frame model
|
||||
// Initialize our view manager
|
||||
mWindow->GetBounds(bounds);
|
||||
if (nsnull != mPresShell) {
|
||||
nscoord width = bounds.width;
|
||||
nscoord height = bounds.height;
|
||||
width = NS_TO_INT_ROUND(width * mPresContext->GetPixelsToTwips());
|
||||
height = NS_TO_INT_ROUND(height * mPresContext->GetPixelsToTwips());
|
||||
mViewManager->SetWindowDimensions(width, height);
|
||||
}
|
||||
ForceRefresh();
|
||||
width = bounds.width;
|
||||
height = bounds.height;
|
||||
width = NS_TO_INT_ROUND(width * mPresContext->GetPixelsToTwips());
|
||||
height = NS_TO_INT_ROUND(height * mPresContext->GetPixelsToTwips());
|
||||
mViewManager->DisableRefresh();
|
||||
mViewManager->SetWindowDimensions(width, height);
|
||||
|
||||
done:
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user