#include "platform/text/PlatformLocale.h"
#include "wtf/DateMath.h"
-namespace WebCore {
+namespace blink {
class DateTimeFormatValidator : public DateTimeFormat::TokenHandler {
public:
newDisplay = INLINE_FLEX;
else if (originalDisplay == BLOCK)
newDisplay = FLEX;
- TextDirection contentDirection = element().locale().isRTL() ? RTL : LTR;
+ TextDirection contentDirection = computedTextDirection();
if (originalStyle->direction() == contentDirection && originalDisplay == newDisplay)
return originalStyle;
}
}
-bool BaseMultipleFieldsDateAndTimeInputType::shouldUseInputMethod() const
-{
- return false;
-}
-
void BaseMultipleFieldsDateAndTimeInputType::stepAttributeChanged()
{
updateView();
}
}
-} // namespace WebCore
+TextDirection BaseMultipleFieldsDateAndTimeInputType::computedTextDirection()
+{
+ return element().locale().isRTL() ? RTL : LTR;
+}
+
+} // namespace blink
#endif