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
Родитель ac295837af
Коммит 0b47ff0f0b
2 изменённых файлов: 4 добавлений и 2 удалений

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

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

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

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