To use DateTimeEditElement other than "time" input type, such as "date", "datetime", "month", or "week", DateTimeEditElement::layout() should take date time format as a parameter instead of calling Localizer::timeFormat().
Created attachment 165059 [details] Patch 1
Comment on attachment 165059 [details] Patch 1 Could you review this patch? Thanks in advance.
Comment on attachment 165059 [details] Patch 1 View in context: https://bugs.webkit.org/attachment.cgi?id=165059&action=review > Source/WebCore/html/TimeInputType.cpp:311 > + bool const hasValue = parseToDateComponents(element()->value(), &date); We usually put "const" followed by a type name. const bool hasValue ... > Source/WebCore/html/shadow/DateTimeEditElement.cpp:410 > +bool DateTimeEditElement::shouldHaveSecondField(const LayoutParameters& layoutParameters) This should be a member of LayoutParameters.
Created attachment 165097 [details] Patch 2
Comment on attachment 165097 [details] Patch 2 Could you review this patch? Thanks in advance. = Changes since the last review = * Fix position of "const". * Move shouldHaveSecondField to LayoutParameters.
Comment on attachment 165097 [details] Patch 2 ok
Comment on attachment 165097 [details] Patch 2 Clearing flags on attachment: 165097 Committed r129206: <http://trac.webkit.org/changeset/129206>
All reviewed patches have been landed. Closing bug.