mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 72152. Be sure to update the pres context's visible area after doing a resize reflow. r=dbaron, sr=attinasi
This commit is contained in:
parent
e73674359b
commit
1688e3949f
@ -2801,6 +2801,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
|
||||
nsContainerFrame::PositionFrameView(mPresContext, rootFrame);
|
||||
rootFrame->Reflow(mPresContext, desiredSize, reflowState, status);
|
||||
rootFrame->SizeTo(mPresContext, desiredSize.width, desiredSize.height);
|
||||
mPresContext->SetVisibleArea(nsRect(0,0,desiredSize.width,desiredSize.height));
|
||||
|
||||
nsIView* view;
|
||||
rootFrame->GetView(mPresContext, &view);
|
||||
if (view) {
|
||||
|
@ -2801,6 +2801,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
|
||||
nsContainerFrame::PositionFrameView(mPresContext, rootFrame);
|
||||
rootFrame->Reflow(mPresContext, desiredSize, reflowState, status);
|
||||
rootFrame->SizeTo(mPresContext, desiredSize.width, desiredSize.height);
|
||||
mPresContext->SetVisibleArea(nsRect(0,0,desiredSize.width,desiredSize.height));
|
||||
|
||||
nsIView* view;
|
||||
rootFrame->GetView(mPresContext, &view);
|
||||
if (view) {
|
||||
|
Loading…
Reference in New Issue
Block a user