RESOLVED FIXED 102041
Enable datalist UI for input types week and month
https://bugs.webkit.org/show_bug.cgi?id=102041
Summary Enable datalist UI for input types week and month
Keishi Hattori
Reported 2012-11-12 20:49:06 PST
Enable datalist UI for input types week and month
Attachments
Patch (3.61 KB, patch)
2012-11-12 21:43 PST, Keishi Hattori
no flags
Patch (4.50 KB, patch)
2012-11-12 22:33 PST, Keishi Hattori
no flags
Patch (5.10 KB, patch)
2012-11-12 22:49 PST, Keishi Hattori
no flags
Patch (7.09 KB, patch)
2012-11-13 20:27 PST, Keishi Hattori
no flags
Keishi Hattori
Comment 1 2012-11-12 21:43:00 PST
Kent Tamura
Comment 2 2012-11-12 21:57:12 PST
Comment on attachment 173815 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173815&action=review > Source/WebKit/chromium/src/DateTimeChooserImpl.cpp:158 > - addProperty("showOtherDateEntry", m_parameters.type == WebCore::InputTypeNames::date(), writer); > + addProperty("showOtherDateEntry", WebCore::RenderTheme::defaultTheme()->supportsCalendarPicker(m_parameters.type), writer); > addProperty("otherDateLabel", Platform::current()->queryLocalizedString(WebLocalizedString::OtherDateLabel), writer); We need to pass OtherMonthLabel / OtherWeekLabel.
Keishi Hattori
Comment 3 2012-11-12 22:33:45 PST
Kent Tamura
Comment 4 2012-11-12 22:36:23 PST
Comment on attachment 173825 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173825&action=review > Source/WebKit/chromium/src/DateTimeChooserImpl.cpp:159 > + String otherDateLabelString; > + if (m_parameters.type == WebCore::InputTypeNames::month()) > + otherDateLabelString = Platform::current()->queryLocalizedString(WebLocalizedString::OtherMonthLabel); > + else if (m_parameters.type == WebCore::InputTypeNames::week()) > + otherDateLabelString = Platform::current()->queryLocalizedString(WebLocalizedString::OtherWeekLabel); > + else > + otherDateLabelString = Platform::current()->queryLocalizedString(WebLocalizedString::OtherDateLabel); nit: We have two instances of m_parameters.type checks in this function. We had better merge them into one.
Keishi Hattori
Comment 5 2012-11-12 22:49:52 PST
WebKit Review Bot
Comment 6 2012-11-13 03:47:58 PST
Comment on attachment 173826 [details] Patch Rejecting attachment 173826 [details] from commit-queue. New failing tests: fast/forms/datalist/input-list.html Full output: http://queues.webkit.org/results/14810843
Kent Tamura
Comment 7 2012-11-13 18:30:08 PST
Comment on attachment 173826 [details] Patch You need to update the expectation of fast/forms/datalist/input-list.html.
Keishi Hattori
Comment 8 2012-11-13 20:27:44 PST
WebKit Review Bot
Comment 9 2012-11-13 22:14:24 PST
Comment on attachment 174057 [details] Patch Clearing flags on attachment: 174057 Committed r134543: <http://trac.webkit.org/changeset/134543>
WebKit Review Bot
Comment 10 2012-11-13 22:14:28 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.