Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2118)

Unified Diff: Source/web/PopupContainer.cpp

Issue 470883002: Add |WebTextDirection toWebTextDirection(TextDirection)|. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/ExternalPopupMenu.cpp ('k') | Source/web/ValidationMessageClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « Source/web/ExternalPopupMenu.cpp ('k') | Source/web/ValidationMessageClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698