| Index: Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| diff --git a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| index 62e7522ffc1087a65750a194a421ab259feb6d3b..eb68bca7a8c1d8ca54f42a84856cbf37cd7e87ea 100644
|
| --- a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| +++ b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| @@ -97,6 +97,15 @@ void BaseChooserOnlyDateAndTimeInputType::didChooseValue(const String& value)
|
| element().setValue(value, DispatchInputAndChangeEvent);
|
| }
|
|
|
| +void BaseChooserOnlyDateAndTimeInputType::didChooseValue(double value)
|
| +{
|
| + ASSERT(std::isfinite(value) || std::isnan(value));
|
| + if (std::isnan(value))
|
| + element().setValue(emptyString(), DispatchInputAndChangeEvent);
|
| + else
|
| + element().setValueAsNumber(value, ASSERT_NO_EXCEPTION, DispatchInputAndChangeEvent);
|
| +}
|
| +
|
| void BaseChooserOnlyDateAndTimeInputType::didEndChooser()
|
| {
|
| m_dateTimeChooser.clear();
|
|
|