Chromium Code Reviews| Index: Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
| diff --git a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
| index 3fbe6236e7b4398297633f29013a9b138c182de6..6b3580839415aea58d38ed211a1c1cbdc7453a44 100644 |
| --- a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
| +++ b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
| @@ -187,7 +187,6 @@ void BaseMultipleFieldsDateAndTimeInputType::editControlValueChanged() |
| input->setValueInternal(newValue, DispatchNoEvent); |
| input->setNeedsStyleRecalc(); |
| input->dispatchFormControlInputEvent(); |
| - input->dispatchFormControlChangeEvent(); |
| } |
| input->notifyFormStateChanged(); |
| input->updateClearButtonVisibility(); |
| @@ -259,6 +258,7 @@ void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St |
| unsigned end; |
| if (date.parseDate(value, 0, end) && end == value.length()) |
| edit->setOnlyYearMonthDay(date); |
| + element().dispatchFormControlChangeEvent(); |
| } |
| void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(double value) |
| @@ -430,6 +430,7 @@ void BaseMultipleFieldsDateAndTimeInputType::handleKeydownEvent(KeyboardEvent* e |
| } else { |
| forwardEvent(event); |
| } |
| + element().dispatchFormControlChangeEvent(); |
|
tkent
2014/01/20 02:05:22
We shouldn't put dispatchFormControlChangeEvent he
|
| } |
| bool BaseMultipleFieldsDateAndTimeInputType::hasBadInput() const |