Chromium Code Reviews| Index: Source/core/html/forms/TextFieldInputType.cpp |
| diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp |
| index 807f2623d1cd28b3bfbb431cd43d1060fbc4538a..0550c6eb73fafc0a50f659c1f247a9887a098a79 100644 |
| --- a/Source/core/html/forms/TextFieldInputType.cpp |
| +++ b/Source/core/html/forms/TextFieldInputType.cpp |
| @@ -178,6 +178,7 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange |
| switch (eventBehavior) { |
| case DispatchChangeEvent: |
| + case DispatchInputAndChangeEvent: |
|
tkent
2014/01/14 01:06:46
This is not acceptable as I already wrote.
|
| // If the user is still editing this field, dispatch an input event rather than a change event. |
| // The change event will be dispatched when editing finishes. |
| if (input->focused()) |
| @@ -185,13 +186,6 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange |
| else |
| input->dispatchFormControlChangeEvent(); |
| break; |
| - |
| - case DispatchInputAndChangeEvent: { |
| - input->dispatchFormControlInputEvent(); |
| - input->dispatchFormControlChangeEvent(); |
| - break; |
| - } |
| - |
| case DispatchNoEvent: |
| break; |
| } |