Index: Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
diff --git a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
index 9f2293665293085f750dee726cee6b3c26c412a6..32c5ab6b321b535bd9887ea3b07c960cbb90c6dd 100644 |
--- a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
+++ b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
@@ -326,7 +326,7 @@ PassRefPtr<RenderStyle> BaseMultipleFieldsDateAndTimeInputType::customStyleForRe |
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; |
@@ -615,6 +615,11 @@ void BaseMultipleFieldsDateAndTimeInputType::updateClearButtonVisibility() |
} |
} |
+TextDirection BaseMultipleFieldsDateAndTimeInputType::computedTextDirection() |
+{ |
+ return element().locale().isRTL() ? RTL : LTR; |
+} |
+ |
} // namespace blink |
#endif |