-
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