Commit a981105a authored by Andrea Iacovitti's avatar Andrea Iacovitti

Negative line-height values are illegal.

parent 0fef6992
......@@ -977,7 +977,7 @@ bool CSSParser::parseValue( int propId, bool important )
if ( id == CSS_VAL_NORMAL )
valid_primitive = true;
else
valid_primitive = ( !id && validUnit( value, FNumber|FLength|FPercent, strict ) );
valid_primitive = ( !id && validUnit( value, FNumber|FLength|FPercent|FNonNeg, strict ) );
break;
case CSS_PROP_COUNTER_INCREMENT: // [ <identifier> <integer>? ]+ | none | inherit
if ( id == CSS_VAL_NONE )
......@@ -2146,7 +2146,7 @@ bool CSSParser::parseFontShorthand(bool important)
goto invalid;
if ( value->id == CSS_VAL_NORMAL ) {
// default value, nothing to do
} else if ( validUnit( value, FNumber|FLength|FPercent, strict ) ) {
} else if ( validUnit( value, FNumber|FLength|FPercent|FNonNeg, strict ) ) {
lineHeight = new CSSPrimitiveValueImpl( value->fValue, (CSSPrimitiveValue::UnitTypes) value->unit );
} else {
goto invalid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment