| Index: third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| index 1ce8c7c30fdfea97f048d5527940c1fe8ca5a702..a41ddf4f8335b3a806bf4dfa61df31e8b0b0e017 100644
|
| --- a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| @@ -304,7 +304,7 @@ void ThemePainterDefault::setupMenuListArrow(
|
| 2 * extraPadding;
|
| // |arrowX| is the middle position for mock theme engine.
|
| extraParams.menuList.arrowX =
|
| - (box.styleRef().direction() == RTL)
|
| + (box.styleRef().direction() == TextDirection::Rtl)
|
| ? rect.x() + extraPadding + (arrowSize / 2)
|
| : right - (arrowSize / 2) - extraPadding;
|
| extraParams.menuList.arrowSize = arrowSize;
|
| @@ -313,9 +313,10 @@ void ThemePainterDefault::setupMenuListArrow(
|
| float arrowSize = 6.0 * arrowScaleFactor;
|
| // Put the 6px arrow at the center of paddingForArrow area.
|
| // |arrowX| is the left position for Aura theme engine.
|
| - extraParams.menuList.arrowX = (box.styleRef().direction() == RTL)
|
| - ? left + (arrowBoxWidth - arrowSize) / 2
|
| - : right - (arrowBoxWidth + arrowSize) / 2;
|
| + extraParams.menuList.arrowX =
|
| + (box.styleRef().direction() == TextDirection::Rtl)
|
| + ? left + (arrowBoxWidth - arrowSize) / 2
|
| + : right - (arrowBoxWidth + arrowSize) / 2;
|
| extraParams.menuList.arrowSize = arrowSize;
|
| }
|
| extraParams.menuList.arrowColor = box.resolveColor(CSSPropertyColor).rgb();
|
|
|