| Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| index 1fb8d7106eb84c80f109dff75ac1cf648e37cb17..2888755212fa94e62e395339d743e6d64c494e49 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| @@ -224,6 +224,18 @@ void HTMLTextFormControlElement::dispatchFormControlChangeEvent() {
|
| setChangedSinceLastFormControlChangeEvent(false);
|
| }
|
|
|
| +void HTMLTextFormControlElement::enqueueChangeEvent() {
|
| + String newValue = value();
|
| + if (shouldDispatchFormControlChangeEvent(m_textAsOfLastFormControlChangeEvent,
|
| + newValue)) {
|
| + setTextAsOfLastFormControlChangeEvent(newValue);
|
| + Event* event = Event::createBubble(EventTypeNames::change);
|
| + event->setTarget(this);
|
| + document().enqueueAnimationFrameEvent(event);
|
| + }
|
| + setChangedSinceLastFormControlChangeEvent(false);
|
| +}
|
| +
|
| void HTMLTextFormControlElement::setRangeText(const String& replacement,
|
| ExceptionState& exceptionState) {
|
| setRangeText(replacement, selectionStart(), selectionEnd(), "preserve",
|
|
|