mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22: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);
|
blockSC->GetData(eStyleStruct_Font);
|
||||||
nsStyleText* blockText = (nsStyleText*)
|
nsStyleText* blockText = (nsStyleText*)
|
||||||
blockSC->GetData(eStyleStruct_Text);
|
blockSC->GetData(eStyleStruct_Text);
|
||||||
|
nsStyleDisplay* blockDisplay = (nsStyleDisplay*)
|
||||||
|
blockSC->GetData(eStyleStruct_Display);
|
||||||
|
|
||||||
// First vertically align the children on the line; this will
|
// First vertically align the children on the line; this will
|
||||||
// compute the actual line height for us.
|
// compute the actual line height for us.
|
||||||
@ -1531,7 +1533,9 @@ nsLineLayout::AlignChildren()
|
|||||||
mAscents, mState.mMaxAscent);
|
mAscents, mState.mMaxAscent);
|
||||||
|
|
||||||
// Now horizontally place the children
|
// Now horizontally place the children
|
||||||
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock, blockText,
|
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock,
|
||||||
|
blockText->mTextAlign,
|
||||||
|
blockDisplay->mDirection,
|
||||||
mLine->mFirstChild,
|
mLine->mFirstChild,
|
||||||
mLine->mChildCount,
|
mLine->mChildCount,
|
||||||
mState.mX - mLeftEdge,
|
mState.mX - mLeftEdge,
|
||||||
|
@ -1520,6 +1520,8 @@ nsLineLayout::AlignChildren()
|
|||||||
blockSC->GetData(eStyleStruct_Font);
|
blockSC->GetData(eStyleStruct_Font);
|
||||||
nsStyleText* blockText = (nsStyleText*)
|
nsStyleText* blockText = (nsStyleText*)
|
||||||
blockSC->GetData(eStyleStruct_Text);
|
blockSC->GetData(eStyleStruct_Text);
|
||||||
|
nsStyleDisplay* blockDisplay = (nsStyleDisplay*)
|
||||||
|
blockSC->GetData(eStyleStruct_Display);
|
||||||
|
|
||||||
// First vertically align the children on the line; this will
|
// First vertically align the children on the line; this will
|
||||||
// compute the actual line height for us.
|
// compute the actual line height for us.
|
||||||
@ -1531,7 +1533,9 @@ nsLineLayout::AlignChildren()
|
|||||||
mAscents, mState.mMaxAscent);
|
mAscents, mState.mMaxAscent);
|
||||||
|
|
||||||
// Now horizontally place the children
|
// Now horizontally place the children
|
||||||
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock, blockText,
|
nsCSSLayout::HorizontallyPlaceChildren(mPresContext, mBlock,
|
||||||
|
blockText->mTextAlign,
|
||||||
|
blockDisplay->mDirection,
|
||||||
mLine->mFirstChild,
|
mLine->mFirstChild,
|
||||||
mLine->mChildCount,
|
mLine->mChildCount,
|
||||||
mState.mX - mLeftEdge,
|
mState.mX - mLeftEdge,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user