| Index: third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| index fe8984381bab9ca33b2bc20d3f5bacc35a65694b..1e28a40a32714934723b01b29f9c36455d7fbaad 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -182,8 +182,12 @@ void TextFieldInputType::setValue(const String& sanitizedValue,
|
| break;
|
| }
|
|
|
| + // TODO(tkent): Calling setTextAsOfLastFormControlChangeEvent() twice is very
|
| + // suspicious.
|
| if (!element().isFocused())
|
| element().setTextAsOfLastFormControlChangeEvent(element().value());
|
| + if (eventBehavior == DispatchNoEvent)
|
| + element().setTextAsOfLastFormControlChangeEvent(element().value());
|
| }
|
|
|
| void TextFieldInputType::handleKeydownEvent(KeyboardEvent* event) {
|
|
|