value->unit = CSSPrimitiveValue::CSS_PX;
b = true;
}
- if (!b && (unitflags & FInteger) &&
- (value->fValue - (int)value->fValue) < 0.001)
+ if (!b && (unitflags & FInteger) && value->isInt)
b = true;
break;
case CSSPrimitiveValue::CSS_PERCENTAGE:
case SECS:
case PERCENTAGE:
length--;
- case NUMBER:
+ case FLOAT:
+ case INTEGER:
yylval->val = DeprecatedString((QChar *)t, length).toDouble();
break;