Index: Source/core/css/CSSCalculationValue.cpp |
diff --git a/Source/core/css/CSSCalculationValue.cpp b/Source/core/css/CSSCalculationValue.cpp |
index 998fba4d322d019fc2069e1f42690de038ab1169..f7420cd9be3cfaaca6f839841e30ea78b991fe9a 100644 |
--- a/Source/core/css/CSSCalculationValue.cpp |
+++ b/Source/core/css/CSSCalculationValue.cpp |
@@ -51,6 +51,7 @@ static CalculationCategory unitCategory(CSSPrimitiveValue::UnitType type) |
{ |
switch (type) { |
case CSSPrimitiveValue::CSS_NUMBER: |
+ case CSSPrimitiveValue::CSS_INTEGER: |
return CalcNumber; |
case CSSPrimitiveValue::CSS_PERCENTAGE: |
return CalcPercent; |
@@ -116,6 +117,7 @@ static bool hasDoubleValue(CSSPrimitiveValue::UnitType type) |
case CSSPrimitiveValue::CSS_DPI: |
case CSSPrimitiveValue::CSS_DPCM: |
case CSSPrimitiveValue::CSS_FR: |
+ case CSSPrimitiveValue::CSS_INTEGER: |
return true; |
case CSSPrimitiveValue::CSS_UNKNOWN: |
case CSSPrimitiveValue::CSS_CUSTOM_IDENT: |