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

magical.  r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@187490 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-01-12 17:11:57 +00:00
parent 565978ebfc
commit 42fc7c3c0c
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();
}