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); |