r=nisheeth@netscape.com Added asserts to help catch the case of poorly

targeted reflow commands


git-svn-id: svn://10.0.0.236/trunk@58817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 2000-01-26 22:11:47 +00:00
parent db4b358fa0
commit 9adaaaf84a
4 changed files with 4 additions and 0 deletions

View File

@ -2530,6 +2530,7 @@ NS_METHOD nsTableFrame::IncrementalReflow(nsIPresContext* aPresContext,
// Get the next frame in the reflow chain
nsIFrame* nextFrame;
reflowState.reflowCommand->GetNext(nextFrame);
NS_ASSERTION(nextFrame, "next frame in reflow command is null");
// Recover our reflow state
rv = IR_TargetIsChild(aPresContext, aDesiredSize, state, aStatus, nextFrame);

View File

@ -327,6 +327,7 @@ nsresult nsTableOuterFrame::IncrementalReflow(nsIPresContext* aPresContex
// Get the next frame in the reflow chain
nsIFrame* nextFrame;
aReflowState.reflowState.reflowCommand->GetNext(nextFrame);
NS_ASSERTION(nextFrame, "next frame in reflow command is null");
// Recover our reflow state
RecoverState(aReflowState, nextFrame);

View File

@ -2530,6 +2530,7 @@ NS_METHOD nsTableFrame::IncrementalReflow(nsIPresContext* aPresContext,
// Get the next frame in the reflow chain
nsIFrame* nextFrame;
reflowState.reflowCommand->GetNext(nextFrame);
NS_ASSERTION(nextFrame, "next frame in reflow command is null");
// Recover our reflow state
rv = IR_TargetIsChild(aPresContext, aDesiredSize, state, aStatus, nextFrame);

View File

@ -327,6 +327,7 @@ nsresult nsTableOuterFrame::IncrementalReflow(nsIPresContext* aPresContex
// Get the next frame in the reflow chain
nsIFrame* nextFrame;
aReflowState.reflowState.reflowCommand->GetNext(nextFrame);
NS_ASSERTION(nextFrame, "next frame in reflow command is null");
// Recover our reflow state
RecoverState(aReflowState, nextFrame);