Skip to content
  • tkent@chromium.org's avatar
    [Chromium-Win] Support shortTimeFormat · ca169be7
    tkent@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=100471
    
    Reviewed by Kentaro Hara.
    
    Source/WebCore:
    
    No new tests. Covered by fast/forms/time-multiple-fields/ and
    WebKit/chromium/tests/LocaleWinTest.
    
    * platform/text/LocaleWin.cpp:
    (WebCore::LocaleWin::shortTimeFormat):
    Gets a format by LOCALE_SSHORTTIME. If it fails, remove "<delimiter>ss"
    from the format by LOCALE_STIMEFORMAT.
    * platform/text/LocaleWin.h:
    (LocaleWin): Declare m_timeFormatWithoutSeconds.
    
    Source/WebKit/chromium:
    
    * tests/LocaleWinTest.cpp:
    (TEST_F): Update test expectations for the behavior change.
    
    LayoutTests:
    
    * platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-appearance-basic-expected.png:
    * platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-appearance-disabled-readonly-expected.png:
    * platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-appearance-pseudo-classes-expected.png:
    * platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-appearance-pseudo-elements-expected.png:
    * platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-appearance-style-expected.png:
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ca169be7