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

Unified Diff: Source/WebCore/platform/text/PlatformLocale.cpp

Issue 14141002: Remove ENABLE_INPUT_TYPE_WEEK compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update html.css Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/platform/chromium/LocalizedStringsChromium.cpp ('k') | Source/WebKit/chromium/features.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/WebCore/platform/chromium/LocalizedStringsChromium.cpp ('k') | Source/WebKit/chromium/features.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698