| Index: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| index 5ea79791985a472c43dc8a72237fc82f8265fbf8..2362193ed67547546232f85070972c2b21d3f1fb 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| @@ -302,6 +302,13 @@ unsigned short CSSPrimitiveValue::computeLength(
|
| }
|
|
|
| template <>
|
| +uint8_t CSSPrimitiveValue::computeLength(
|
| + const CSSToLengthConversionData& conversionData) const {
|
| + return roundForImpreciseConversion<uint8_t>(
|
| + computeLengthDouble(conversionData));
|
| +}
|
| +
|
| +template <>
|
| float CSSPrimitiveValue::computeLength(
|
| const CSSToLengthConversionData& conversionData) const {
|
| return clampTo<float>(computeLengthDouble(conversionData));
|
|
|