because Localizer::monthFormat can contain MMM or LLL. See http://www.unicode.org/reports/tr35/#Date_Format_Patterns
Created attachment 169544 [details] Patch
Comment on attachment 169544 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169544&action=review > Source/WebCore/platform/text/LocaleICU.cpp:466 > + m_shortStandAloneMonthLabels = *labels; Nit: I would prefer early return here. 'return m_shortStandAloneMonthLabels;' > Source/WebCore/platform/text/LocaleICU.cpp:468 > + if (m_shortStandAloneMonthLabels.isEmpty()) Then you can remove this branch. > Source/WebCore/platform/text/LocaleNone.cpp:99 > + m_shortMonthLabels.reserveCapacity(12); Nit: 12 => WTF_ARRAY_LENGTH(WTF::monthName)
Comment on attachment 169544 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169544&action=review >> Source/WebCore/platform/text/LocaleICU.cpp:466 >> + m_shortStandAloneMonthLabels = *labels; > > Nit: I would prefer early return here. 'return m_shortStandAloneMonthLabels;' Done. >> Source/WebCore/platform/text/LocaleNone.cpp:99 >> + m_shortMonthLabels.reserveCapacity(12); > > Nit: 12 => WTF_ARRAY_LENGTH(WTF::monthName) Done.
Committed r131854: <http://trac.webkit.org/changeset/131854>