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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index c6863dd163eeb4dc38938418a5e5d5027aa0a35c..b8902e035f5578a999c1ce3326f375567a3c1050 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -1046,8 +1046,9 @@ void HTMLInputElement::setSuggestedValue(const String& value) {
return;
m_needsToUpdateViewValue = true;
m_suggestedValue = sanitizeValue(value);
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::ControlValue));
+ setNeedsStyleRecalc(
+ SubtreeStyleChange,
+ StyleChangeReasonForTracing::create(StyleChangeReason::ControlValue));
m_inputTypeView->updateView();
}
@@ -1226,9 +1227,9 @@ void HTMLInputElement::defaultEventHandler(Event* evt) {
// Call the base event handler before any of our own event handling for almost
// all events in text fields. Makes editing keyboard handling take precedence
// over the keydown and keypress handling in this function.
- bool callBaseClassEarly =
- isTextField() && (evt->type() == EventTypeNames::keydown ||
- evt->type() == EventTypeNames::keypress);
+ bool callBaseClassEarly = isTextField() &&
+ (evt->type() == EventTypeNames::keydown ||
+ evt->type() == EventTypeNames::keypress);
if (callBaseClassEarly) {
TextControlElement::defaultEventHandler(evt);
if (evt->defaultHandled())
@@ -1265,8 +1266,9 @@ void HTMLInputElement::defaultEventHandler(Event* evt) {
// FIXME: Remove type check.
if (type() == InputTypeNames::search) {
TaskRunnerHelper::get(TaskType::UserInteraction, &document())
- ->postTask(BLINK_FROM_HERE, WTF::bind(&HTMLInputElement::onSearch,
- wrapPersistent(this)));
+ ->postTask(
+ BLINK_FROM_HERE,
+ WTF::bind(&HTMLInputElement::onSearch, wrapPersistent(this)));
}
// Form submission finishes editing, just as loss of focus does.
// If there was a change, send the event now.

Powered by Google App Engine
This is Rietveld 408576698