Use revised HorziontallyPlaceChildren api

This commit is contained in:
kipp 1998-05-28 02:01:50 +00:00
parent 024ff28d3a
commit e3c2b23d0a
2 changed files with 10 additions and 2 deletions

View File

@ -1520,6 +1520,8 @@ nsLineLayout::AlignChildren()
blockSC->GetData(eStyleStruct_Font);
nsStyleText* blockText = (nsStyleText*)
blockSC->GetData(eStyleStruct_Text);
nsStyleDisplay* blockDisplay = (nsStyleDisplay*)
blockSC->GetData(eStyleStruct_Display);
// First vertically align the children on the line; this will
// compute the actual line height for us.
@ -1531,7 +1533,9 @@ nsLineLayout::AlignChildren()
mAscents, mState.mMaxAscent);
// Now horizontally place the children
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock, blockText,
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock,
blockText->mTextAlign,
blockDisplay->mDirection,
mLine->mFirstChild,
mLine->mChildCount,
mState.mX - mLeftEdge,

View File

@ -1520,6 +1520,8 @@ nsLineLayout::AlignChildren()
blockSC->GetData(eStyleStruct_Font);
nsStyleText* blockText = (nsStyleText*)
blockSC->GetData(eStyleStruct_Text);
nsStyleDisplay* blockDisplay = (nsStyleDisplay*)
blockSC->GetData(eStyleStruct_Display);
// First vertically align the children on the line; this will
// compute the actual line height for us.
@ -1531,7 +1533,9 @@ nsLineLayout::AlignChildren()
mAscents, mState.mMaxAscent);
// Now horizontally place the children
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock, blockText,
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock,
blockText->mTextAlign,
blockDisplay->mDirection,
mLine->mFirstChild,
mLine->mChildCount,
mState.mX - mLeftEdge,