1. 14 Sep, 2012 2 commits
    • ojan@chromium.org's avatar
      Complete forgotten rebaseline. See https://bugs.webkit.org/show_bug.cgi?id=96751. · 1add1d00
      ojan@chromium.org authored
      The results all look like they pass.
      
      * platform/chromium-linux/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt: Copied from LayoutTests/platform/chromium-mac/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt.
      * platform/chromium-win-xp/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt: Copied from LayoutTests/platform/chromium-mac/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt.
      * platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt: Copied from LayoutTests/platform/chromium-mac/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt.
      * platform/chromium/TestExpectations:
      * platform/chromium/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt: Renamed from LayoutTests/platform/chromium-mac/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1add1d00
    • tkent@chromium.org's avatar
      Make time input lang attribute aware for testing · aff3c93e
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96728
      
      Patch by Keishi Hattori <keishi@webkit.org> on 2012-09-14
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      This patch implements partial lang attribute support for input type=time
      that turns on only when enabled through InternalSettings.
      
      Test: fast/forms/time-multiple-fields/time-multiple-fields-localization.html
      
      * dom/Document.cpp:
      (WebCore::Document::getLocalizer): Returns a localizer for a given locale. Localizers are cached for repeated use.
      (WebCore):
      * dom/Document.h:
      (WebCore):
      (Document):
      * html/TimeInputType.cpp:
      (WebCore::TimeInputType::updateInnerTextValue): Use the locale for the input element.
      * html/shadow/DateTimeEditElement.cpp:
      (DateTimeEditBuilder):
      (WebCore::DateTimeEditBuilder::DateTimeEditBuilder):
      (WebCore::DateTimeEditBuilder::visitField):
      (WebCore::DateTimeEditElement::layout):
      (WebCore::DateTimeEditElement::setValueAsDate):
      (WebCore::DateTimeEditElement::setEmptyValue):
      * html/shadow/DateTimeEditElement.h:
      (WebCore):
      (DateTimeEditElement):
      
      Source/WebKit/chromium:
      
      * tests/LocalizedDateICUTest.cpp:
      (LocalizedDateICUTest::localizedDateFormatText):
      (LocalizedDateICUTest::localizedShortDateFormatText):
      
      LayoutTests:
      
      * fast/forms/resources/common.js:
      (getUserAgentShadowTextContent): Used to get the text inside an input element.
      * fast/forms/time-multiple-fields/time-multiple-fields-localization.html: Added.
      * platform/chromium-mac/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt: Added.
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aff3c93e