| 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 64b5fe37b6e6e71330f99841b81503b55e02440c..26bba4bd95f252fb57b38f492bb37970f8b64751 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| @@ -558,7 +558,7 @@ CSSPrimitiveValue::UnitType CSSPrimitiveValue::lengthUnitTypeToUnitType(LengthUn
|
| return CSSPrimitiveValue::UnitType::Unknown;
|
| }
|
|
|
| -static String formatNumber(double number, const char* suffix, unsigned suffixLength)
|
| +static String formatNumber(double number, const StringView& suffix)
|
| {
|
| #if OS(WIN) && _MSC_VER < 1900
|
| unsigned oldFormat = _set_output_format(_TWO_DIGIT_EXPONENT);
|
| @@ -567,21 +567,10 @@ static String formatNumber(double number, const char* suffix, unsigned suffixLen
|
| #if OS(WIN) && _MSC_VER < 1900
|
| _set_output_format(oldFormat);
|
| #endif
|
| - result.append(suffix, suffixLength);
|
| + result.append(suffix);
|
| return result;
|
| }
|
|
|
| -template <unsigned characterCount>
|
| -ALWAYS_INLINE static String formatNumber(double number, const char (&characters)[characterCount])
|
| -{
|
| - return formatNumber(number, characters, characterCount - 1);
|
| -}
|
| -
|
| -static String formatNumber(double number, const char* characters)
|
| -{
|
| - return formatNumber(number, characters, strlen(characters));
|
| -}
|
| -
|
| const char* CSSPrimitiveValue::unitTypeToString(UnitType type)
|
| {
|
| switch (type) {
|
|
|