added assertion for null peeked frame pointer in Reflow.

This commit is contained in:
karnaze%netscape.com 1999-02-23 18:06:55 +00:00
parent ff9f11d487
commit cc3251aeaf
2 changed files with 4 additions and 2 deletions

View File

@ -449,7 +449,8 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
aReflowState.reflowCommand->GetNext(nextFrame, PR_FALSE);
// See if it's one of our absolutely positioned child frames
if (nextFrame && mAbsoluteFrames.ContainsFrame(nextFrame)) {
NS_ASSERTION(nsnull != nextFrame, "next frame in reflow command is null.");
if (mAbsoluteFrames.ContainsFrame(nextFrame)) {
// Remove the next frame from the reflow path
aReflowState.reflowCommand->GetNext(nextFrame, PR_TRUE);

View File

@ -449,7 +449,8 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
aReflowState.reflowCommand->GetNext(nextFrame, PR_FALSE);
// See if it's one of our absolutely positioned child frames
if (nextFrame && mAbsoluteFrames.ContainsFrame(nextFrame)) {
NS_ASSERTION(nsnull != nextFrame, "next frame in reflow command is null.");
if (mAbsoluteFrames.ContainsFrame(nextFrame)) {
// Remove the next frame from the reflow path
aReflowState.reflowCommand->GetNext(nextFrame, PR_TRUE);