| 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 62c37871077fca476ca893b13f85a1d9cf2a16f1..3107defc0508cb4672d8bd7781d349b42afdd4fb 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| @@ -300,6 +300,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));
|
|
|