| 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 d3c46052dc707340038853ccb3fcb20d01e8b351..1ad1e33107624c69cd70be95fdcf56f65a74f0d0 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| @@ -1145,10 +1145,7 @@ void HTMLSelectElement::restoreFormControlState(const FormControlState& state)
|
| if (itemsSize == 0)
|
| return;
|
|
|
| - for (auto& item : items) {
|
| - if (isHTMLOptionElement(item))
|
| - toHTMLOptionElement(item)->setSelectedState(false);
|
| - }
|
| + selectOption(nullptr, DeselectOtherOptions);
|
|
|
| // The saved state should have at least one value and an index.
|
| ASSERT(state.valueSize() >= 2);
|
|
|