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

Unified Diff: third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp

Issue 2462983002: INPUT element: code cleanup (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/SubmitInputType.h ('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/core/html/forms/SubmitInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp b/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
index c64bd2755f063a0cf64326feb725d2736da669c6..0cb899cad7dab063c137afc8023d7de591033e15 100644
--- a/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp
@@ -51,7 +51,7 @@ const AtomicString& SubmitInputType::formControlType() const {
void SubmitInputType::appendToFormData(FormData& formData) const {
if (element().isActivatedSubmit())
- formData.append(element().name(), element().valueWithDefault());
+ formData.append(element().name(), element().valueOrDefaultLabel());
}
bool SubmitInputType::supportsRequired() const {
@@ -70,7 +70,7 @@ bool SubmitInputType::canBeSuccessfulSubmitButton() {
return true;
}
-String SubmitInputType::defaultValue() const {
+String SubmitInputType::defaultLabel() const {
return locale().queryString(WebLocalizedString::SubmitButtonDefaultLabel);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/SubmitInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698