Added ASSERT for the case where we get passed a reflow reason of initial

when we've already been reflowed once
This commit is contained in:
troy%netscape.com 1998-08-03 23:29:35 +00:00
parent 609fc7250e
commit 51a8b8dc9a
2 changed files with 4 additions and 0 deletions

View File

@ -401,6 +401,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext& aPresContext,
} else {
if (eReflowReason_Initial == aReflowState.reason) {
NS_ASSERTION(nsnull == mFirstChild, "unexpected reflow reason");
// Set up our kids. They're already present, on an overflow list,
// or there are none so we'll create them now
MoveOverflowToChildList();

View File

@ -401,6 +401,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext& aPresContext,
} else {
if (eReflowReason_Initial == aReflowState.reason) {
NS_ASSERTION(nsnull == mFirstChild, "unexpected reflow reason");
// Set up our kids. They're already present, on an overflow list,
// or there are none so we'll create them now
MoveOverflowToChildList();