Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp

Issue 2390563002: Reflow comments in core/html/forms/. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]))

Powered by Google App Engine
This is Rietveld 408576698