Remove the root from mDirtyRoots if we resize-reflow it, so that we don't get

assertions about frame state not matching with whether the frame is in
mDirtyRoots.  Bug 374167, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@225054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2007-04-26 00:17:50 +00:00
parent 76fd6b9c29
commit f779dffd0f

View File

@ -2684,6 +2684,7 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
AUTO_LAYOUT_PHASE_ENTRY_POINT(GetPresContext(), Reflow);
// XXXldb Set mIsReflowing (and unset it later)?
mDirtyRoots.RemoveElement(rootFrame);
DoReflow(rootFrame);
mPresContext->SetVisibleArea(nsRect(nsPoint(0, 0), rootFrame->GetSize()));
}