Localizer::monthFormat will be used for input[type=month].
Created attachment 169388 [details] Patch
Comment on attachment 169388 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169388&action=review > Source/WebCore/platform/text/LocaleWin.cpp:720 > + m_monthFormat = convertWindowsDateFormatToLDML(parseDateFormat(getLocaleInfoString(LOCALE_SYEARMONTH))); (I don't know the details but) don't you need to use m_locale instead of LOCALE_SYEARMONTH? > Source/WebKit/chromium/tests/LocaleMacTest.cpp:247 > + EXPECT_STREQ("MMM yyyy", monthFormat("en_US").utf8().data()); Nit: Shall we add a test case for French, just like other tests?
Comment on attachment 169388 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169388&action=review >> Source/WebCore/platform/text/LocaleWin.cpp:720 >> + m_monthFormat = convertWindowsDateFormatToLDML(parseDateFormat(getLocaleInfoString(LOCALE_SYEARMONTH))); > > (I don't know the details but) don't you need to use m_locale instead of LOCALE_SYEARMONTH? getLocaleInfoString() refers to m_lcid. >> Source/WebKit/chromium/tests/LocaleMacTest.cpp:247 >> + EXPECT_STREQ("MMM yyyy", monthFormat("en_US").utf8().data()); > > Nit: Shall we add a test case for French, just like other tests? will do.
Committed r131749: <http://trac.webkit.org/changeset/131749>