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:
parent
db4b358fa0
commit
9adaaaf84a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user