Index: Source/WebCore/html/NumberInputType.cpp |
=================================================================== |
--- Source/WebCore/html/NumberInputType.cpp (revision 139719) |
+++ Source/WebCore/html/NumberInputType.cpp (working copy) |
@@ -106,6 +106,13 @@ |
return InputTypeNames::number(); |
} |
+void NumberInputType::setValue(const String& sanitizedValue, bool valueChanged, TextFieldEventBehavior eventBehavior) |
+{ |
+ if (!valueChanged && sanitizedValue.isEmpty() && !element()->innerTextValue().isEmpty()) |
+ updateInnerTextValue(); |
+ TextFieldInputType::setValue(sanitizedValue, valueChanged, eventBehavior); |
+} |
+ |
double NumberInputType::valueAsDouble() const |
{ |
return parseToDoubleForNumberType(element()->value()); |