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

Unified Diff: third_party/WebKit/Source/web/PopupMenuImpl.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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
Index: third_party/WebKit/Source/web/PopupMenuImpl.cpp
diff --git a/third_party/WebKit/Source/web/PopupMenuImpl.cpp b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
index 866d1c702ea8fd339b9a48734017502dea4b8636..a6a856dd14e8d49130c3fc66b4137a6353b86f16 100644
--- a/third_party/WebKit/Source/web/PopupMenuImpl.cpp
+++ b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
@@ -320,9 +320,11 @@ void PopupMenuImpl::addElementStyle(ItemIterationContext& context,
if (style->display() == EDisplay::None)
addProperty("display", String("none"), data);
const ComputedStyle& baseStyle = context.baseStyle();
- if (baseStyle.direction() != style->direction())
- addProperty("direction", String(style->direction() == RTL ? "rtl" : "ltr"),
- data);
+ if (baseStyle.direction() != style->direction()) {
+ addProperty(
+ "direction",
+ String(style->direction() == TextDirection::Rtl ? "rtl" : "ltr"), data);
+ }
if (isOverride(style->unicodeBidi()))
addProperty("unicodeBidi", String("bidi-override"), data);
Color foregroundColor = style->visitedDependentColor(CSSPropertyColor);
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenu.cpp ('k') | third_party/WebKit/public/web/WebTextDirection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698