RESOLVED FIXED Bug 83872
Show the format indicator in a date field
https://bugs.webkit.org/show_bug.cgi?id=83872
Summary Show the format indicator in a date field
Kent Tamura
Reported 2012-04-13 02:53:06 PDT
Show the format indicator in a date field
Attachments
WIP (54.54 KB, patch)
2012-04-13 02:54 PDT, Kent Tamura
no flags
Patch (51.91 KB, patch)
2012-04-18 23:16 PDT, Kent Tamura
no flags
Patch 2 (12.44 KB, patch)
2012-04-23 02:50 PDT, Kent Tamura
no flags
Archive of layout-test-results from ec2-cq-02 (5.67 MB, application/zip)
2012-04-23 16:35 PDT, WebKit Review Bot
no flags
Patch for landing (15.23 KB, patch)
2012-04-23 20:11 PDT, Kent Tamura
no flags
Kent Tamura
Comment 1 2012-04-13 02:54:51 PDT
Kent Tamura
Comment 2 2012-04-15 23:27:41 PDT
I'll split the patch into multiple.
Kent Tamura
Comment 3 2012-04-18 23:16:45 PDT
Hajime Morrita
Comment 4 2012-04-21 08:02:08 PDT
Comment on attachment 137851 [details] Patch I hope this to be tested in non-pixel way somehow. For example, we can access the dumped render treee using Internals.elementRenderTreeAsText(), which allows us to inspect the render tree programatically. Or maybe we can simply use add a reftest.
Ryosuke Niwa
Comment 5 2012-04-21 19:07:51 PDT
Comment on attachment 137851 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137851&action=review > Source/WebCore/platform/text/LocalizedDate.h:49 > +// Localized date format string such as "month/day/year". > +String dateFormatText(); Instead of adding a comment, can we simply name this function localizedDateFormatString? > Source/WebCore/platform/text/LocalizedDateICU.cpp:138 > + if (lastChar == 'y' || lastChar == 'Y') { Can we add a comment saying that these Y, M, d, etc... follow ICU convention? Or maybe we can define inline helper functions like isICUYearSymbol (We probably prefer the latter approach). > Source/WebCore/platform/text/LocalizedDateICU.cpp:140 > + builder.append(text.isEmpty() ? "year" : text); Maybe we should capitalize these? > LayoutTests/fast/forms/date/date-appearance.html:21 > +<div><input type="date" value=""></div> Can we use a ref-test here?
Kent Tamura
Comment 6 2012-04-23 02:50:48 PDT
Kent Tamura
Comment 7 2012-04-23 02:55:29 PDT
Comment on attachment 137851 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137851&action=review >> Source/WebCore/platform/text/LocalizedDate.h:49 >> +String dateFormatText(); > > Instead of adding a comment, can we simply name this function localizedDateFormatString? ok, I renamed it. >> Source/WebCore/platform/text/LocalizedDateICU.cpp:138 >> + if (lastChar == 'y' || lastChar == 'Y') { > > Can we add a comment saying that these Y, M, d, etc... follow ICU convention? > Or maybe we can define inline helper functions like isICUYearSymbol (We probably prefer the latter approach). I inroduced isICUFooSymbol functions. >> Source/WebCore/platform/text/LocalizedDateICU.cpp:140 >> + builder.append(text.isEmpty() ? "year" : text); > > Maybe we should capitalize these? Done. >> LayoutTests/fast/forms/date/date-appearance.html:21 >> +<div><input type="date" value=""></div> > > Can we use a ref-test here? I made a text test using window.internals.visiblePlaceholder().
Hajime Morrita
Comment 8 2012-04-23 09:57:23 PDT
Comment on attachment 138315 [details] Patch 2 Looks better now.
WebKit Review Bot
Comment 9 2012-04-23 16:35:22 PDT
Comment on attachment 138315 [details] Patch 2 Rejecting attachment 138315 [details] from commit-queue. New failing tests: fast/forms/date/date-appearance.html Full output: http://queues.webkit.org/results/12528070
WebKit Review Bot
Comment 10 2012-04-23 16:35:33 PDT
Created attachment 138455 [details] Archive of layout-test-results from ec2-cq-02 The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: ec2-cq-02 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Kent Tamura
Comment 11 2012-04-23 20:11:41 PDT
Created attachment 138491 [details] Patch for landing
WebKit Review Bot
Comment 12 2012-04-23 22:57:53 PDT
Comment on attachment 138491 [details] Patch for landing Clearing flags on attachment: 138491 Committed r114999: <http://trac.webkit.org/changeset/114999>
WebKit Review Bot
Comment 13 2012-04-23 22:58:05 PDT
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.