Assert that reflow reason is correct

This commit is contained in:
kipp 1998-05-29 02:11:50 +00:00
parent b9d5409399
commit fd620819d3

View File

@ -140,11 +140,14 @@ NS_METHOD nsBodyFrame::Reflow(nsIPresContext* aPresContext,
aStatus = NS_FRAME_COMPLETE; // initialize out parameter
// Do we have any children?
// XXX Verify the reason is eReflowReason_Initial...
if (nsnull == mFirstChild) {
// No, create a pseudo block frame
NS_ASSERTION(eReflowReason_Initial == aReflowState.reason, "bad reason");
CreateColumnFrame(aPresContext);
}
else {
NS_ASSERTION(eReflowReason_Initial != aReflowState.reason, "bad reason");
}
if (eReflowReason_Incremental == aReflowState.reason) {