Skip to content
  • keishi@webkit.org's avatar
    Calendar picker should use zero as default step base · 2fb5b7de
    keishi@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=97976
    
    Reviewed by Kent Tamura.
    
    .:
    
    * ManualTests/forms/calendar-picker.html: Added stepBase parameters.
    
    Source/WebCore:
    
    Calendar picker should be using zero as default step base for input type=date.
    The spec says to use zero unless specified otherwise.
    Since input type=week has another default step base, I am adding step base
    to DateTimeChooserParameters.
    
    Test: fast/forms/date/calendar-picker-with-step.html
    
    * Resources/pagepopups/calendarPicker.js:
    (handleArgumentsTimeout):
    (CalendarPicker):
    (CalendarPicker.prototype.stepMismatch): Use the new this.stepBase.
    * html/shadow/PickerIndicatorElement.cpp:
    (WebCore::PickerIndicatorElement::openPopup): Gets step base from step range.
    * platform/DateTimeChooser.h:
    (DateTimeChooserParameters): Added stepBase.
    
    Source/WebKit/chromium:
    
    * src/DateTimeChooserImpl.cpp:
    (WebKit::DateTimeChooserImpl::writeDocument): stepBase needs 11 digits of precision when setting maximum possible date.
    
    LayoutTests:
    
    * fast/forms/date/calendar-picker-with-step-expected.txt: Renamed from LayoutTests/fast/forms/date/calendar-picker-appearance-with-step-expected.txt.
    * fast/forms/date/calendar-picker-with-step.html: Renamed from LayoutTests/fast/forms/date/calendar-picker-appearance-with-step.html. Renamed because this does not test apeparance.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2fb5b7de