diff options
Diffstat (limited to 'Source/WebCore/html/NumberInputType.cpp')
-rw-r--r-- | Source/WebCore/html/NumberInputType.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/html/NumberInputType.cpp b/Source/WebCore/html/NumberInputType.cpp index 3397248..af30345 100644 --- a/Source/WebCore/html/NumberInputType.cpp +++ b/Source/WebCore/html/NumberInputType.cpp @@ -223,8 +223,9 @@ String NumberInputType::visibleValue() const if (currentValue.isEmpty()) return currentValue; double doubleValue = numeric_limits<double>::quiet_NaN(); - parseToDoubleForNumberType(currentValue, &doubleValue); - String localized = formatLocalizedNumber(doubleValue); + unsigned decimalPlace; + parseToDoubleForNumberTypeWithDecimalPlaces(currentValue, &doubleValue, &decimalPlace); + String localized = formatLocalizedNumber(doubleValue, decimalPlace); return localized.isEmpty() ? currentValue : localized; } |