Index: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h |
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h |
index 8d2864c79ba3d4775ccf297ead3f03bea15dc35a..01d98f7e696d9fbf08f45cb402c09c0dd3ebf7c0 100644 |
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h |
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h |
@@ -110,13 +110,13 @@ template<> inline float CSSPrimitiveValue::convertTo() const |
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineClampValue i) |
: CSSValue(PrimitiveClass) |
{ |
- init(i.isPercentage() ? UnitType::Percentage : UnitType::Number); |
+ init(i.isPercentage() ? UnitType::Percentage : UnitType::Integer); |
m_value.num = static_cast<double>(i.value()); |
} |
template<> inline LineClampValue CSSPrimitiveValue::convertTo() const |
{ |
- if (type() == UnitType::Number) |
+ if (type() == UnitType::Integer) |
return LineClampValue(clampTo<int>(m_value.num), LineClampLineCount); |
if (type() == UnitType::Percentage) |