Fix bug 297801 by making removal and reinsertion of the root element less

magical.  r=peterv, sr=jst
This commit is contained in:
bzbarsky@mit.edu
2006-01-12 17:11:57 +00:00
parent d2602b2c74
commit 0614bc751d
2 changed files with 21 additions and 9 deletions

View File

@@ -5185,14 +5185,6 @@ PresShell::ContentRemoved(nsIDocument *aDocument,
mFrameConstructor->ContentRemoved(aContainer, aChild,
aIndexInContainer, PR_FALSE);
// If we have no root content node at this point, be sure to reset
// mDidInitialReflow to PR_FALSE, this will allow InitialReflow()
// to be called again should a new root node be inserted for this
// presShell. (Bug 167355)
if (mDocument && !mDocument->GetRootContent())
mDidInitialReflow = PR_FALSE;
VERIFY_STYLE_TREE;
DidCauseReflow();
}