-
tkent@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=98229 Reviewed by Kentaro Hara. Unify identical code in DateTimeInputType and DateTimeLocalInputType as Localizer member functions. They still have some common code. We'll address it later. No new tests. This doesn't change any behavior. * platform/text/Localizer.h: (Localizer): Add dateTimeFormatWithSecond and dateTimeFormatWithoutSecond. * platform/text/Localizer.cpp: (WebCore::Localizer::dateTimeFormatWithSecond): Implemented. Just concatenating dateFormat, a space, and timeFormat. (WebCore::Localizer::dateTimeFormatWithoutSecond): Implemented. Just concatenating dateFormat, a space, and shortTimeFormat. * html/DateTimeInputType.cpp: (WebCore::DateTimeInputType::setupLayoutParameters): Use dateTimeFormatWithSecond and dateTimeFormatWithoutSecond. * html/DateTimeLocalInputType.cpp: (WebCore::DateTimeLocalInputType::setupLayoutParameters): ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
86d00978