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

Unified Diff: third_party/WebKit/Source/web/WebSearchableFormData.cpp

Issue 2546063002: Rename FormAssociatedElement to ListedElement (Closed)
Patch Set: Suggested changes made Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/web/WebFormElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/web/WebFormElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698