| 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 66ac70079a4f7e7abd5d27a3cc4243c82bca4bba..d16d9dfe24f399cff7499f2f96d7ddc12ebf4f05 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| @@ -887,10 +887,7 @@ void HTMLSelectElement::resetToDefaultSelection(ResetReason reason)
|
| // We can't use HTMLSelectElement::options here because this function is
|
| // called in Node::insertedInto and Node::removedFrom before invalidating
|
| // node collections.
|
| - for (auto& item : listItems()) {
|
| - if (!isHTMLOptionElement(item))
|
| - continue;
|
| - HTMLOptionElement* option = toHTMLOptionElement(item);
|
| + for (const auto& option : optionList()) {
|
| if (option->selected()) {
|
| if (lastSelectedOption) {
|
| lastSelectedOption->setSelectedState(false);
|
|
|