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

Unified Diff: third_party/WebKit/Source/core/html/forms/BaseButtonInputType.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
Index: third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
index 269a0b18bc4df868e86644187aee5dc0a49599a7..99f7960b16e25a8fd892b5448e6d9d13077d7009 100644
--- a/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
@@ -67,7 +67,7 @@ void BaseButtonInputType::valueAttributeChanged() {
}
String BaseButtonInputType::displayValue() const {
- return element().valueWithDefault().removeCharacters(isHTMLLineBreak);
+ return element().valueOrDefaultLabel().removeCharacters(isHTMLLineBreak);
}
bool BaseButtonInputType::shouldSaveAndRestoreFormControlState() const {

Powered by Google App Engine
This is Rietveld 408576698