зеркало из https://github.com/mozilla/gecko-dev.git
r=nisheeth@netscape.com Added asserts to help catch the case of poorly
targeted reflow commands
This commit is contained in:
Родитель
324fe8e9a8
Коммит
4f738fb73f
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче