| 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 af808c4718241e3dbd5dfe2d91c355bb6a489178..04e7e95366f6a0136ed2297eed95163c70bb80cb 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -159,8 +159,9 @@ void TextFieldInputType::setValue(const String& sanitizedValue,
|
|
|
| switch (eventBehavior) {
|
| case DispatchChangeEvent:
|
| - // 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 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 (element().focused())
|
| element().dispatchFormControlInputEvent();
|
| else
|
| @@ -433,7 +434,8 @@ void TextFieldInputType::handleBeforeTextInsertedEvent(
|
| unsigned appendableLength =
|
| maxLength > baseLength ? maxLength - baseLength : 0;
|
|
|
| - // Truncate the inserted text to avoid violating the maxLength and other constraints.
|
| + // Truncate the inserted text to avoid violating the maxLength and other
|
| + // constraints.
|
| String eventText = event->text();
|
| unsigned textLength = eventText.length();
|
| while (textLength > 0 && isASCIILineBreak(eventText[textLength - 1]))
|
|
|