| 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() {
|
|
|