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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp

Issue 1764063002: Rename two functions related to 'default button' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index 37736c59d0fbdb6271e964d17f5e5f795c21e778..a26795b85efe9b4cef0e3df3e8c6d38fdcf3a7e3 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -635,11 +635,11 @@ bool HTMLFormControlElement::isSuccessfulSubmitButton() const
return canBeSuccessfulSubmitButton() && !isDisabledFormControl();
}
-bool HTMLFormControlElement::isDefaultButtonForForm() const
+bool HTMLFormControlElement::matchesDefaultPseudoClass() const
{
- // HTMLFormElement::defaultButton() traverses the tree. So we check
+ // HTMLFormElement::findDefaultButton() traverses the tree. So we check
// canBeSuccessfulSubmitButton() first for early return.
- return canBeSuccessfulSubmitButton() && form() && form()->defaultButton() == this;
+ return canBeSuccessfulSubmitButton() && form() && form()->findDefaultButton() == this;
}
HTMLFormControlElement* HTMLFormControlElement::enclosingFormControlElement(Node* node)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFormControlElement.h ('k') | third_party/WebKit/Source/core/html/HTMLFormElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698