Chromium Code Reviews| Index: Source/core/css/CSSPrimitiveValue.cpp |
| diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp |
| index fd40ac79468f8935f59f8ccc83407c0ffec23529..3b6fa179c4524fc0683247f53a4dba3ffb1b09c4 100644 |
| --- a/Source/core/css/CSSPrimitiveValue.cpp |
| +++ b/Source/core/css/CSSPrimitiveValue.cpp |
| @@ -152,6 +152,11 @@ StringToUnitTable& unitTable() |
| } // namespace |
| +float CSSPrimitiveValue::clampToCSSLengthRange(float value) |
|
fs
2015/03/12 14:28:48
Reuse this in computeLength too. Should probably t
Erik Dahlström (inactive)
2015/03/12 16:14:56
Done.
|
| +{ |
| + return clampTo<float>(value, minValueForCssLength, maxValueForCssLength); |
| +} |
| + |
| void CSSPrimitiveValue::initUnitTable() |
| { |
| // Make sure we initialize this during blink initialization |