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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.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/HTMLSelectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
index fe352c535ecfc9d2a09be45fb60f8816fffa66a6..0fbdd748c8742a3b3ba739206be78db7e8703649 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -824,9 +824,9 @@ void HTMLSelectElement::resetToDefaultSelection(ResetReason reason) {
if (!lastSelectedOption && m_size <= 1 &&
(!firstEnabledOption ||
(firstEnabledOption && !firstEnabledOption->selected()))) {
- selectOption(firstEnabledOption, reason == ResetReasonSelectedOptionRemoved
- ? 0
- : DeselectOtherOptions);
+ selectOption(
+ firstEnabledOption,
+ reason == ResetReasonSelectedOptionRemoved ? 0 : DeselectOtherOptions);
lastSelectedOption = firstEnabledOption;
didChange = true;
}
@@ -1313,8 +1313,9 @@ void HTMLSelectElement::menuListDefaultEventHandler(Event* event) {
handled = false;
if (handled && option)
- selectOption(option, DeselectOtherOptions | MakeOptionDirty |
- DispatchInputAndChangeEvent);
+ selectOption(
+ option,
+ DeselectOtherOptions | MakeOptionDirty | DispatchInputAndChangeEvent);
if (handled)
event->setDefaultHandled();
@@ -1719,9 +1720,9 @@ void HTMLSelectElement::typeAheadFind(KeyboardEvent* event) {
event, TypeAhead::MatchPrefix | TypeAhead::CycleFirstChar);
if (index < 0)
return;
- selectOption(optionAtListIndex(index), DeselectOtherOptions |
- MakeOptionDirty |
- DispatchInputAndChangeEvent);
+ selectOption(
+ optionAtListIndex(index),
+ DeselectOtherOptions | MakeOptionDirty | DispatchInputAndChangeEvent);
if (!usesMenuList())
listBoxOnChange();
}
@@ -1905,8 +1906,9 @@ void HTMLSelectElement::selectOptionByPopup(int listIndex) {
// the selected option is not change.
if (option == selectedOption())
return;
- selectOption(option, DeselectOtherOptions | MakeOptionDirty |
- DispatchInputAndChangeEvent);
+ selectOption(
+ option,
+ DeselectOtherOptions | MakeOptionDirty | DispatchInputAndChangeEvent);
}
void HTMLSelectElement::popupDidCancel() {

Powered by Google App Engine
This is Rietveld 408576698