| Index: third_party/WebKit/Source/core/html/forms/DateTimeLocalInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/DateTimeLocalInputType.cpp b/third_party/WebKit/Source/core/html/forms/DateTimeLocalInputType.cpp
|
| index 243f53cfb11ae8677814452d6fbea12645c22156..536df8012e64a9992ecc38529ec31d3ac5a09b2e 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/DateTimeLocalInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/DateTimeLocalInputType.cpp
|
| @@ -107,6 +107,12 @@ String DateTimeLocalInputType::localizeValue(const String& proposedValue) const
|
| return localized.isEmpty() ? proposedValue : localized;
|
| }
|
|
|
| +void DateTimeLocalInputType::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-ddThh:mm\" followed by optional \":ss\" or \":ss.SSS\".", value);
|
| +}
|
| +
|
| #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
|
| // FIXME: It is better to share code for DateTimeInputType::formatDateTimeFieldsState()
|
| // and DateTimeInputLocalType::formatDateTimeFieldsState().
|
|
|