From f779dffd0f2a8ecd46d908c8403fb0fb1ab4eab8 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 26 Apr 2007 00:17:50 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsPresShell.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index c6b5513d17c..cf0ae4ac7b0 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -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())); }