PassRefPtr<RenderStyle> BaseMultipleFieldsDateAndTimeInputType::customStyleForRenderer(PassRefPtr<RenderStyle> originalStyle)
{
    EDisplay originalDisplay = originalStyle->display();
    EDisplay newDisplay = originalDisplay;
    if (originalDisplay == INLINE || originalDisplay == INLINE_BLOCK)
        newDisplay = INLINE_FLEX;
    else if (originalDisplay == BLOCK)
        newDisplay = FLEX;
    TextDirection contentDirection = element()->locale().isRTL() ? RTL : LTR;
    if (originalStyle->direction() == contentDirection && originalDisplay == newDisplay)
        return originalStyle;

    RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get());
    style->setDirection(contentDirection);
    style->setDisplay(newDisplay);
    return style.release();
}
PassRefPtr<ComputedStyle> BaseMultipleFieldsDateAndTimeInputType::customStyleForLayoutObject(PassRefPtr<ComputedStyle> originalStyle)
{
    EDisplay originalDisplay = originalStyle->display();
    EDisplay newDisplay = originalDisplay;
    if (originalDisplay == INLINE || originalDisplay == INLINE_BLOCK)
        newDisplay = INLINE_FLEX;
    else if (originalDisplay == BLOCK)
        newDisplay = FLEX;
    TextDirection contentDirection = computedTextDirection();
    if (originalStyle->direction() == contentDirection && originalDisplay == newDisplay)
        return originalStyle;

    RefPtr<ComputedStyle> style = ComputedStyle::clone(*originalStyle);
    style->setDirection(contentDirection);
    style->setDisplay(newDisplay);
    style->setUnique();
    return style.release();
}
PassRefPtr<ComputedStyle>
MultipleFieldsTemporalInputTypeView::customStyleForLayoutObject(
    PassRefPtr<ComputedStyle> originalStyle) {
  EDisplay originalDisplay = originalStyle->display();
  EDisplay newDisplay = originalDisplay;
  if (originalDisplay == EDisplay::Inline ||
      originalDisplay == EDisplay::InlineBlock)
    newDisplay = EDisplay::InlineFlex;
  else if (originalDisplay == EDisplay::Block)
    newDisplay = EDisplay::Flex;
  TextDirection contentDirection = computedTextDirection();
  if (originalStyle->direction() == contentDirection &&
      originalDisplay == newDisplay)
    return originalStyle;

  RefPtr<ComputedStyle> style = ComputedStyle::clone(*originalStyle);
  style->setDirection(contentDirection);
  style->setDisplay(newDisplay);
  style->setUnique();
  return style.release();
}