Index: Source/web/PopupContainer.cpp |
diff --git a/Source/web/PopupContainer.cpp b/Source/web/PopupContainer.cpp |
index 1ad094b1270a9ca061ac592a057fd06e72f9f67a..2168f6134f87b1ace81c13faa4bf9cd25f397dc6 100644 |
--- a/Source/web/PopupContainer.cpp |
+++ b/Source/web/PopupContainer.cpp |
@@ -491,10 +491,7 @@ void PopupContainer::getPopupMenuInfo(WebPopupMenuInfo* info) |
outputItem.label = inputItem.label; |
outputItem.enabled = inputItem.enabled; |
- if (inputItem.textDirection == RTL) |
- outputItem.textDirection = WebTextDirectionRightToLeft; |
- else |
- outputItem.textDirection = WebTextDirectionLeftToRight; |
+ outputItem.textDirection = toWebTextDirection(inputItem.textDirection); |
outputItem.hasTextDirectionOverride = inputItem.hasTextDirectionOverride; |
switch (inputItem.type) { |