| Index: third_party/WebKit/Source/core/html/forms/MonthInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/MonthInputType.cpp b/third_party/WebKit/Source/core/html/forms/MonthInputType.cpp
|
| index 1f038c798988ebc23579cfc04fc5c6bb57144424..37c8503ab6344ed0bc0e21dc43d85544e43c3adb 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/MonthInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/MonthInputType.cpp
|
| @@ -127,6 +127,12 @@ bool MonthInputType::canSetSuggestedValue()
|
| return true;
|
| }
|
|
|
| +void MonthInputType::warnIfValueIsInvalid(const String& value) const
|
| +{
|
| + if (value != element().sanitizeValue(value))
|
| + addWarningToConsole("The specified value %s does not conform to the required format. The format is \"yyyy-MM\" where yyyy is year in four or more digits, and MM is 01-12.", value);
|
| +}
|
| +
|
| #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
|
| String MonthInputType::formatDateTimeFieldsState(const DateTimeFieldsState& dateTimeFieldsState) const
|
| {
|
|
|