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
Родитель c3ec2ea3a9
Коммит a4f2401d33
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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();

Просмотреть файл

@ -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();