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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextAreaElement.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/HTMLTextAreaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
index a3d83420b2bb02e3b315cc7078b5f17e818978f7..d824b733648aeac67768bd299f9f525ddba65efb 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
@@ -257,9 +257,10 @@ void HTMLTextAreaElement::updateFocusAppearance(
}
void HTMLTextAreaElement::defaultEventHandler(Event* event) {
- if (layoutObject() && (event->isMouseEvent() || event->isDragEvent() ||
- event->hasInterface(EventNames::WheelEvent) ||
- event->type() == EventTypeNames::blur))
+ if (layoutObject() &&
+ (event->isMouseEvent() || event->isDragEvent() ||
+ event->hasInterface(EventNames::WheelEvent) ||
+ event->type() == EventTypeNames::blur))
forwardEvent(event);
else if (layoutObject() && event->isBeforeTextInsertedEvent())
handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(event));
@@ -417,8 +418,9 @@ void HTMLTextAreaElement::setValueCommon(const String& newValue,
if (eventBehavior == DispatchNoEvent)
setLastChangeWasNotUserEdit();
updatePlaceholderVisibility();
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::ControlValue));
+ setNeedsStyleRecalc(
+ SubtreeStyleChange,
+ StyleChangeReasonForTracing::create(StyleChangeReason::ControlValue));
m_suggestedValue = String();
setNeedsValidityCheck();
if (isFinishedParsingChildren()) {
@@ -500,8 +502,9 @@ void HTMLTextAreaElement::setSuggestedValue(const String& value) {
else
setInnerEditorValue(m_value);
updatePlaceholderVisibility();
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::ControlValue));
+ setNeedsStyleRecalc(
+ SubtreeStyleChange,
+ StyleChangeReasonForTracing::create(StyleChangeReason::ControlValue));
}
String HTMLTextAreaElement::validationMessage() const {

Powered by Google App Engine
This is Rietveld 408576698