fix for bug 107545

added nullchek for a frame pointer
r= kmcckuskey sr= attinasi a=rjesup adt1.0.0+=syd


git-svn-id: svn://10.0.0.236/trunk@118680 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alexsavulov%netscape.com 2002-04-11 00:06:39 +00:00
parent afd38856f3
commit d471bf6ed8
2 changed files with 10 additions and 6 deletions

View File

@ -4319,9 +4319,11 @@ nsBlockFrame::PostPlaceLine(nsBlockReflowState& aState,
// positioned and sized
if (aLine->IsInline()) {
nsIFrame* frame = aLine->mFirstChild;
for (PRInt32 i = 0; i < aLine->GetChildCount(); i++) {
::PlaceFrameView(aState.mPresContext, frame);
frame->GetNextSibling(&frame);
for (PRInt32 i = 0; (i < aLine->GetChildCount() && frame); i++) {
::PlaceFrameView(aState.mPresContext, frame);
frame->GetNextSibling(&frame);
NS_ASSERTION(frame || (i+1) == aLine->GetChildCount(),
"Child count bigger than the number of linked frames!!!");
}
}

View File

@ -4319,9 +4319,11 @@ nsBlockFrame::PostPlaceLine(nsBlockReflowState& aState,
// positioned and sized
if (aLine->IsInline()) {
nsIFrame* frame = aLine->mFirstChild;
for (PRInt32 i = 0; i < aLine->GetChildCount(); i++) {
::PlaceFrameView(aState.mPresContext, frame);
frame->GetNextSibling(&frame);
for (PRInt32 i = 0; (i < aLine->GetChildCount() && frame); i++) {
::PlaceFrameView(aState.mPresContext, frame);
frame->GetNextSibling(&frame);
NS_ASSERTION(frame || (i+1) == aLine->GetChildCount(),
"Child count bigger than the number of linked frames!!!");
}
}