| Index: Source/WebCore/platform/text/PlatformLocale.cpp
|
| diff --git a/Source/WebCore/platform/text/PlatformLocale.cpp b/Source/WebCore/platform/text/PlatformLocale.cpp
|
| index fb64c14deae71d38a1076ebf0262b8f49add41ae..40ee2fd1916d9287c91936c507b763d247de8ef1 100644
|
| --- a/Source/WebCore/platform/text/PlatformLocale.cpp
|
| +++ b/Source/WebCore/platform/text/PlatformLocale.cpp
|
| @@ -334,10 +334,6 @@ String Locale::formatDateTime(const DateComponents& date, FormatType formatType)
|
| {
|
| if (date.type() == DateComponents::Invalid)
|
| return String();
|
| -#if !ENABLE(INPUT_TYPE_WEEK)
|
| - if (date.type() == DateComponents::Week)
|
| - return String();
|
| -#endif
|
|
|
| DateTimeStringBuilder builder(*this, date);
|
| switch (date.type()) {
|
| @@ -351,10 +347,8 @@ String Locale::formatDateTime(const DateComponents& date, FormatType formatType)
|
| builder.build(formatType == FormatTypeShort ? shortMonthFormat() : monthFormat());
|
| break;
|
| case DateComponents::Week:
|
| -#if ENABLE(INPUT_TYPE_WEEK)
|
| builder.build(weekFormatInLDML());
|
| break;
|
| -#endif
|
| case DateComponents::DateTime:
|
| case DateComponents::DateTimeLocal:
|
| builder.build(formatType == FormatTypeShort ? dateTimeFormatWithoutSeconds() : dateTimeFormatWithSeconds());
|
|
|