Changeset 130116 in webkit
- Timestamp:
- Oct 1, 2012 9:22:55 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130114 r130116 1 2012-10-01 Yoshifumi Inoue <yosin@chromium.org> 2 3 Week specifiers defined in DateTimeFormat class are wrong. 4 https://bugs.webkit.org/show_bug.cgi?id=98104 5 6 Reviewed by Kent Tamura. 7 8 This patch changes week of year and week of month format specifiers 9 defined in DateTimeFormat class to match with Unicode technical 10 standard 35, LDML, Locale Data Markup Language, (http://www.unicode.org/reports/tr35/). 11 12 No new tests. Following existing tests cover this change: 13 - fast/forms/month-multiple-fields/month-multiple-fields-appearance-basic.html 14 - fast/forms/month-multiple-fields/month-multiple-fields-appearance-pseudo-classes.html 15 - fast/forms/month-multiple-fields/month-multiple-fields-appearance-pseudo-elements.html 16 - fast/forms/month-multiple-fields/month-multiple-fields-appearance-style.html 17 18 * html/WeekInputType.cpp: 19 (WebCore::WeekInputType::setupLayoutParameters): Changed to use 'w' instead of 'W'. 20 * platform/text/DateTimeFormat.cpp: Changed elements in lowerCaseToFieldTypeMap and upperCaseToFieldTypeMap. 21 * platform/text/DateTimeFormat.h: Changed FieldTypeWeekOfMonth to 'W' and FieldTypeWeekOfYear to 'w'. 22 1 23 2012-10-01 Glenn Adams <glenn@skynav.com> 2 24 -
trunk/Source/WebCore/html/WeekInputType.cpp
r130024 r130116 110 110 { 111 111 layoutParameters.dateTimeFormat = weekFormatInLDML(); 112 layoutParameters.fallbackDateTimeFormat = "'Week' WW-yyyy";112 layoutParameters.fallbackDateTimeFormat = "'Week' ww-yyyy"; 113 113 layoutParameters.placeholderForYear = "----"; 114 114 } -
trunk/Source/WebCore/platform/text/DateTimeFormat.cpp
r129612 r130116 56 56 DateTimeFormat::FieldTypeExtendedYear, // u 57 57 DateTimeFormat::FieldTypeNonLocationZone, // v 58 DateTimeFormat::FieldTypeWeekOf Month, // w58 DateTimeFormat::FieldTypeWeekOfYear, // w 59 59 DateTimeFormat::FieldTypeInvalid, // x 60 60 DateTimeFormat::FieldTypeYear, // y … … 85 85 DateTimeFormat::FieldTypeInvalid, // U 86 86 DateTimeFormat::FieldTypeInvalid, // V 87 DateTimeFormat::FieldTypeWeekOf Year, // W87 DateTimeFormat::FieldTypeWeekOfMonth, // W 88 88 DateTimeFormat::FieldTypeInvalid, // X 89 89 DateTimeFormat::FieldTypeYearOfWeekOfYear, // Y -
trunk/Source/WebCore/platform/text/DateTimeFormat.h
r129612 r130116 58 58 59 59 // Week: 42 60 FieldTypeWeekOfYear = ' W',61 FieldTypeWeekOfMonth = ' w',60 FieldTypeWeekOfYear = 'w', 61 FieldTypeWeekOfMonth = 'W', 62 62 63 63 // Day: 12
Note: See TracChangeset
for help on using the changeset viewer.