Chromium Code Reviews| Index: Source/core/html/HTMLInputElement.cpp |
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
| index 53526f27867af0be1eb798fe217be25a152efd8b..637c99977a46e3c9d22af158fad619cc95a797e4 100644 |
| --- a/Source/core/html/HTMLInputElement.cpp |
| +++ b/Source/core/html/HTMLInputElement.cpp |
| @@ -883,6 +883,8 @@ void HTMLInputElement::setChecked(bool nowChecked, TextFieldEventBehavior eventB |
| // definitely wrong in practice for these types of elements. |
| if (eventBehavior != DispatchNoEvent && inDocument() && m_inputType->shouldSendChangeEventAfterCheckedChanged()) { |
| setTextAsOfLastFormControlChangeEvent(String()); |
| + if (eventBehavior == DispatchInputAndChangeEvent) |
| + dispatchFormControlInputEvent(); |
|
tkent
2014/03/28 01:50:33
Looks dangerous. An 'input' event handler can del
Dan Beam
2014/03/28 04:50:57
Done.
|
| dispatchFormControlChangeEvent(); |
| } |