RESOLVED FIXED 97992
[Forms] Adding DateTimeWeekFieldElement for multiple fields "week" input UI
https://bugs.webkit.org/show_bug.cgi?id=97992
Summary [Forms] Adding DateTimeWeekFieldElement for multiple fields "week" input UI
yosin
Reported 2012-09-30 22:21:30 PDT
To implement multiple fields "week" input UI, we would like to have DateTimeWeekFieldElement.
Attachments
Patch 1 (4.69 KB, patch)
2012-10-01 00:02 PDT, yosin
no flags
Patch 2 (6.46 KB, patch)
2012-10-01 01:50 PDT, yosin
no flags
Patch 3 (7.47 KB, patch)
2012-10-01 02:12 PDT, yosin
no flags
yosin
Comment 1 2012-10-01 00:02:58 PDT
yosin
Comment 2 2012-10-01 00:03:31 PDT
Comment on attachment 166414 [details] Patch 1 Could you review this patch? Thanks in advance.
Kent Tamura
Comment 3 2012-10-01 00:38:56 PDT
Comment on attachment 166414 [details] Patch 1 View in context: https://bugs.webkit.org/attachment.cgi?id=166414&action=review > Source/WebCore/ChangeLog:8 > + THis patch is a preparation of implementing multiple fields date/time THis -> This BTW, this paragraph looks unnecessary. The next paragraph has enough information. > Source/WebCore/html/shadow/DateTimeFieldElements.cpp:344 > + : DateTimeNumericFieldElement(document, fieldOwner, 1, 53, "--") We had better define a static const variable for "53", or add a static const member to DateComponents.
yosin
Comment 4 2012-10-01 01:50:32 PDT
yosin
Comment 5 2012-10-01 01:51:34 PDT
Comment on attachment 166427 [details] Patch 2 Could you review this patch? Thanks in advance. = Changes since the last review = * Add constant DateComponents::maximumWeekOfYearNumber and miniumWeekOfYear.
Kent Tamura
Comment 6 2012-10-01 02:01:32 PDT
Comment on attachment 166427 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=166427&action=review > Source/WebCore/platform/DateComponents.cpp:48 > +const int DateComponents::minimumWeekOfYearNumber = 1; > + > +// HTML5 specification defines maximum week of year is 53. > +const int DateComponents::maximumWeekOfYearNumber = 53; IMO, minimumWeekNumber and maximumWeekNumber are better. DateComponents::maxWeekNumberInYear() and DateComponents::parseWeek() should use them.
yosin
Comment 7 2012-10-01 02:12:37 PDT
yosin
Comment 8 2012-10-01 02:14:16 PDT
Comment on attachment 166430 [details] Patch 3 Could you review this patch? Thanks in advance. = Changes since the last review = * Rename maximumWeekOfYearNumber to maximumWeekNumber. * Rename minimumWeekOfYearNumber to minimumWeekNumber. * Use maximumWeekNumber in DateComponents::maxWeekNumberInYear() * Use minimumWeekNumber in parseWeek()
Kent Tamura
Comment 9 2012-10-01 02:16:18 PDT
Comment on attachment 166430 [details] Patch 3 ok
yosin
Comment 10 2012-10-01 02:18:25 PDT
Comment on attachment 166430 [details] Patch 3 Clearing flags on attachment: 166430 Committed r130018: <http://trac.webkit.org/changeset/130018>
yosin
Comment 11 2012-10-01 02:18:29 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.