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

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

Issue 2462983002: INPUT element: code cleanup (Closed)
Patch Set: Created 4 years, 1 month 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/ColorInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
index 4848a74b8cdf1aa851fb2e77e413cd262ac85d18..3bd2c9bf0f1964b7d2c0d13c59f08e6c2fd3f139 100644
--- a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
@@ -109,14 +109,9 @@ bool ColorInputType::supportsRequired() const {
return false;
}
-String ColorInputType::fallbackValue() const {
- return String("#000000");
-}
-
String ColorInputType::sanitizeValue(const String& proposedValue) const {
if (!isValidColorString(proposedValue))
- return fallbackValue();
-
+ return "#000000";
return proposedValue.lower();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/ColorInputType.h ('k') | third_party/WebKit/Source/core/html/forms/FileInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698