Use revised HorziontallyPlaceChildren api

git-svn-id: svn://10.0.0.236/trunk@2465 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-05-28 02:01:50 +00:00
parent a1e84139ce
commit 0f84787aa8
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,