WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
110454
Add methods to date types for new calendar picker
https://bugs.webkit.org/show_bug.cgi?id=110454
Summary
Add methods to date types for new calendar picker
Keishi Hattori
Reported
2013-02-21 03:41:22 PST
Add methods to date types for new calendar picker
Attachments
Patch
(53.07 KB, patch)
2013-02-21 03:58 PST
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Patch
(51.62 KB, patch)
2013-02-21 20:32 PST
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Patch
(51.59 KB, patch)
2013-02-22 03:34 PST
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Keishi Hattori
Comment 1
2013-02-21 03:58:48 PST
Created
attachment 189505
[details]
Patch
Kent Tamura
Comment 2
2013-02-21 06:49:16 PST
Comment on
attachment 189505
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=189505&action=review
> Source/WebCore/Resources/pagepopups/calendarPicker.js:224 > this.year = dateObject.getUTCFullYear(); > this.month = dateObject.getUTCMonth(); > this.date = dateObject.getUTCDate();
Data members should have JsDoc comments in the constructor.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:249 > + * @param {!number} value > + * @return {!Day} > + */ > +Day.createFromValue = function(value) {
'value' has almost no information. It should be 'milliseconds' or something.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:268 > + return day.copy();
Can we just return this? AFAIK, Day objects are immutable, right?
> Source/WebCore/Resources/pagepopups/calendarPicker.js:332 > + return this.copy();
Ditto.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:339 > + return this.copy();
Ditto.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:346 > + return this.copy();
Ditto.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:389 > + this.year = year; > + this.week = week;
Data members should have JsDoc comments in the constructor.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:487 > + return Day.Minimum.copy();
Do we need to copy?
> Source/WebCore/Resources/pagepopups/calendarPicker.js:616 > + this.year = year + Math.floor(month / MonthsPerYear); > + this.month = month % MonthsPerYear < 0 ? month % MonthsPerYear + MonthsPerYear : month % MonthsPerYear;
Data members should have JsDoc comments in the constructor.
> Source/WebCore/Resources/pagepopups/calendarPicker.js:642 > + * @param {!number} value
Need more meaningful name. monthsSinceEpoch?
> Source/WebCore/Resources/pagepopups/calendarPicker.js:752 > + return Day.Maximum.copy();
Do we need to copy?
Keishi Hattori
Comment 3
2013-02-21 20:32:59 PST
Created
attachment 189667
[details]
Patch
Kent Tamura
Comment 4
2013-02-21 23:03:05 PST
Comment on
attachment 189667
[details]
Patch ok
Keishi Hattori
Comment 5
2013-02-22 03:34:40 PST
Created
attachment 189735
[details]
Patch
WebKit Review Bot
Comment 6
2013-02-22 05:23:10 PST
Comment on
attachment 189735
[details]
Patch Rejecting
attachment 189735
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=gce-cq-02', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 189735, '--port=chromium-xvfb']" exit_code: 2 cwd: /mnt/git/webkit-commit-queue Last 500 characters of output: fatal: read error: Connection reset by peer Died at Tools/Scripts/update-webkit line 151. Failed to run "['Tools/Scripts/update-webkit', '--chromium', '--force-update']" exit_code: 2 Updating OpenSource fatal: read error: Connection reset by peer Died at Tools/Scripts/update-webkit line 151. Failed to run "['Tools/Scripts/update-webkit', '--chromium', '--force-update']" exit_code: 2 Updating OpenSource fatal: read error: Connection reset by peer Died at Tools/Scripts/update-webkit line 151. Full output:
http://queues.webkit.org/results/16700795
WebKit Review Bot
Comment 7
2013-02-24 08:44:30 PST
Comment on
attachment 189735
[details]
Patch Clearing flags on attachment: 189735 Committed
r143867
: <
http://trac.webkit.org/changeset/143867
>
WebKit Review Bot
Comment 8
2013-02-24 08:44:33 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.
Top of Page
Format For Printing
XML
Clone This Bug