Changeset 129106 in webkit


Ignore:
Timestamp:
Sep 20, 2012 1:35:20 AM (12 years ago)
Author:
keishi@webkit.org
Message:

REGRESSION(r127727): Can't navigate between months with arrow keys in calendar picker
https://bugs.webkit.org/show_bug.cgi?id=97166

Reviewed by Kent Tamura.

Source/WebCore:

Fixing bug in r127727 so arrow keys work properly.

Test: fast/forms/date/calendar-picker-key-operations.html

  • Resources/pagepopups/calendarPicker.js:

(DaysTable.prototype._maybeSetPreviousMonth):
(DaysTable.prototype._maybeSetNextMonth):

LayoutTests:

  • fast/forms/date/calendar-picker-key-operations-expected.txt: Added.
  • fast/forms/date/calendar-picker-key-operations.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r129104 r129106  
     12012-09-20  Keishi Hattori  <keishi@webkit.org>
     2
     3        REGRESSION(r127727): Can't navigate between months with arrow keys in calendar picker
     4        https://bugs.webkit.org/show_bug.cgi?id=97166
     5
     6        Reviewed by Kent Tamura.
     7
     8        * fast/forms/date/calendar-picker-key-operations-expected.txt: Added.
     9        * fast/forms/date/calendar-picker-key-operations.html: Added.
     10
    1112012-09-20  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r129105 r129106  
     12012-09-20  Keishi Hattori  <keishi@webkit.org>
     2
     3        REGRESSION(r127727): Can't navigate between months with arrow keys in calendar picker
     4        https://bugs.webkit.org/show_bug.cgi?id=97166
     5
     6        Reviewed by Kent Tamura.
     7
     8        Fixing bug in r127727 so arrow keys work properly.
     9
     10        Test: fast/forms/date/calendar-picker-key-operations.html
     11
     12        * Resources/pagepopups/calendarPicker.js:
     13        (DaysTable.prototype._maybeSetPreviousMonth):
     14        (DaysTable.prototype._maybeSetNextMonth):
     15
    1162012-09-18  Alexander Pavlov  <apavlov@chromium.org>
    217
  • trunk/Source/WebCore/Resources/pagepopups/calendarPicker.js

    r129094 r129106  
    986986 */
    987987DaysTable.prototype._maybeSetPreviousMonth = function() {
    988     var year = global.yearMonthController.year();
    989     var month = global.yearMonthController.month();
     988    var year = this.picker.yearMonthController.year();
     989    var month = this.picker.yearMonthController.month();
    990990    var thisMonthStartTime = createUTCDate(year, month, 1).getTime();
    991     if (this.minimumDate.getTime() >= thisMonthStartTime)
     991    if (this.picker.minimumDate.getTime() >= thisMonthStartTime)
    992992        return false;
    993993    if (month == 0) {
     
    10041004 */
    10051005DaysTable.prototype._maybeSetNextMonth = function() {
    1006     var year = global.yearMonthController.year();
    1007     var month = global.yearMonthController.month();
     1006    var year = this.picker.yearMonthController.year();
     1007    var month = this.picker.yearMonthController.month();
    10081008    if (month == 11) {
    10091009        year++;
Note: See TracChangeset for help on using the changeset viewer.