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

targeted reflow commands
This commit is contained in:
troy%netscape.com 2000-01-26 22:11:47 +00:00
Родитель 324fe8e9a8
Коммит 4f738fb73f
4 изменённых файлов: 4 добавлений и 0 удалений

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

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

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

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

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

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

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

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