Use PERCENT instead of PCT in style constants; udpated usage of vertical alignment information in nsStyleText

This commit is contained in:
kipp
1998-04-27 21:26:48 +00:00
parent 70bf51fa3d
commit 61ecb4069b
8 changed files with 19 additions and 19 deletions

View File

@@ -95,7 +95,7 @@ void nsTableCellFrame::VerticallyAlignChild(nsIPresContext* aPresContext)
nscoord topInset = spacing->mBorderPadding.top;
nscoord bottomInset = spacing->mBorderPadding.bottom;
PRUint8 verticalAlign = textStyle->mVerticalAlign;
PRUint8 verticalAlignFlags = textStyle->mVerticalAlignFlags;
nscoord height = mRect.height;
nsRect kidRect;
@@ -105,7 +105,7 @@ void nsTableCellFrame::VerticallyAlignChild(nsIPresContext* aPresContext)
// Vertically align the child
nscoord kidYTop = 0;
switch (verticalAlign)
switch (verticalAlignFlags)
{
case NS_STYLE_VERTICAL_ALIGN_BASELINE:
// Align the child's baseline at the max baseline