removed assert on x-height unit
git-svn-id: svn://10.0.0.236/trunk@9703 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -436,7 +436,7 @@ nscoord CSSStyleRuleImpl::CalcLength(const nsCSSValue& aValue,
|
||||
case eCSSUnit_EN:
|
||||
return (aFont->mFont.size / 2);
|
||||
case eCSSUnit_XHeight:
|
||||
NS_NOTYETIMPLEMENTED("x height unit");
|
||||
// NS_NOTYETIMPLEMENTED("x height unit");
|
||||
return ((aFont->mFont.size / 3) * 2); // XXX HACK!
|
||||
case eCSSUnit_CapHeight:
|
||||
NS_NOTYETIMPLEMENTED("cap height unit");
|
||||
|
||||
@@ -436,7 +436,7 @@ nscoord CSSStyleRuleImpl::CalcLength(const nsCSSValue& aValue,
|
||||
case eCSSUnit_EN:
|
||||
return (aFont->mFont.size / 2);
|
||||
case eCSSUnit_XHeight:
|
||||
NS_NOTYETIMPLEMENTED("x height unit");
|
||||
// NS_NOTYETIMPLEMENTED("x height unit");
|
||||
return ((aFont->mFont.size / 3) * 2); // XXX HACK!
|
||||
case eCSSUnit_CapHeight:
|
||||
NS_NOTYETIMPLEMENTED("cap height unit");
|
||||
|
||||
@@ -436,7 +436,7 @@ nscoord CSSStyleRuleImpl::CalcLength(const nsCSSValue& aValue,
|
||||
case eCSSUnit_EN:
|
||||
return (aFont->mFont.size / 2);
|
||||
case eCSSUnit_XHeight:
|
||||
NS_NOTYETIMPLEMENTED("x height unit");
|
||||
// NS_NOTYETIMPLEMENTED("x height unit");
|
||||
return ((aFont->mFont.size / 3) * 2); // XXX HACK!
|
||||
case eCSSUnit_CapHeight:
|
||||
NS_NOTYETIMPLEMENTED("cap height unit");
|
||||
|
||||
Reference in New Issue
Block a user