| Index: third_party/WebKit/Source/web/WebSearchableFormData.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebSearchableFormData.cpp b/third_party/WebKit/Source/web/WebSearchableFormData.cpp
|
| index 5b377e4b2e07f648a2fc45050ebef2050693931e..9c440b365be491e47ccecd107be1bd0bd5941ec8 100644
|
| --- a/third_party/WebKit/Source/web/WebSearchableFormData.cpp
|
| +++ b/third_party/WebKit/Source/web/WebSearchableFormData.cpp
|
| @@ -70,7 +70,7 @@ void getFormEncoding(const HTMLFormElement& form, WTF::TextEncoding* encoding) {
|
| // button is returned.
|
| HTMLFormControlElement* buttonToActivate(const HTMLFormElement& form) {
|
| HTMLFormControlElement* firstSubmitButton = nullptr;
|
| - for (auto& element : form.associatedElements()) {
|
| + for (auto& element : form.listedElements()) {
|
| if (!element->isFormControlElement())
|
| continue;
|
| HTMLFormControlElement* control = toHTMLFormControlElement(element);
|
| @@ -138,7 +138,7 @@ bool isInDefaultState(const HTMLFormControlElement& formElement) {
|
| // - More than one text field
|
| HTMLInputElement* findSuitableSearchInputElement(const HTMLFormElement& form) {
|
| HTMLInputElement* textElement = nullptr;
|
| - for (const auto& item : form.associatedElements()) {
|
| + for (const auto& item : form.listedElements()) {
|
| if (!item->isFormControlElement())
|
| continue;
|
|
|
| @@ -184,7 +184,7 @@ bool buildSearchString(const HTMLFormElement& form,
|
| const WTF::TextEncoding& encoding,
|
| const HTMLInputElement* textElement) {
|
| bool isElementFound = false;
|
| - for (const auto& item : form.associatedElements()) {
|
| + for (const auto& item : form.listedElements()) {
|
| if (!item->isFormControlElement())
|
| continue;
|
|
|
|
|