| Index: Source/WebCore/html/InputType.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/InputType.cpp (revision 140650)
|
| +++ Source/WebCore/html/InputType.cpp (working copy)
|
| @@ -670,8 +670,19 @@
|
| {
|
| element()->setValueInternal(sanitizedValue, eventBehavior);
|
| element()->setNeedsStyleRecalc();
|
| - if (valueChanged && eventBehavior != DispatchNoEvent)
|
| + if (!valueChanged)
|
| + return;
|
| + switch (eventBehavior) {
|
| + case DispatchChangeEvent:
|
| element()->dispatchFormControlChangeEvent();
|
| + break;
|
| + case DispatchInputAndChangeEvent:
|
| + element()->dispatchFormControlInputEvent();
|
| + element()->dispatchFormControlChangeEvent();
|
| + break;
|
| + case DispatchNoEvent:
|
| + break;
|
| + }
|
| }
|
|
|
| bool InputType::canSetValue(const String&)
|
|
|