mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Use revised HorziontallyPlaceChildren api
This commit is contained in:
parent
024ff28d3a
commit
e3c2b23d0a
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user