bug 49239

r=hyatt

bug 42372
r=waterson


git-svn-id: svn://10.0.0.236/trunk@77054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
2000-08-24 04:38:08 +00:00
parent 097fcd9652
commit 71d538ea91
4 changed files with 44 additions and 16 deletions

View File

@@ -2240,8 +2240,14 @@ nsHTMLReflowState::ComputeVerticalValue(nscoord aContainingBlockHeight,
// a height that's shrink wrapping to its content. In that case they should
// treat the specified value like 'auto'
NS_ASSERTION(NS_AUTOHEIGHT != aContainingBlockHeight, "unexpected containing block height");
float pct = aCoord.GetPercentValue();
aResult = NSToCoordFloor(aContainingBlockHeight * pct);
if (NS_AUTOHEIGHT!=aContainingBlockHeight)
{
float pct = aCoord.GetPercentValue();
aResult = NSToCoordFloor(aContainingBlockHeight * pct);
}
else { // safest thing to do for an undefined height is to make it 0
aResult = 0;
}
} else if (eStyleUnit_Coord == aUnit) {
aResult = aCoord.GetCoordValue();