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:
parent
afd38856f3
commit
d471bf6ed8
@ -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!!!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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!!!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user