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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Added 2 changes in mac files 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/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 0b0fb12ed9bec925b9193a0af701cf971a0fc5cf..3ad394ff3fe52b3c83f931c7000f7930dcd300dd 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
+++ b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
@@ -298,7 +298,7 @@ void ThemePainterDefault::setupMenuListArrow(
mockDropdownMenuListArrowWidth * box.styleRef().effectiveZoom();
int arrowSize = std::min(arrowBoxWidth, rect.height()) - 2 * extraPadding;
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;
@@ -306,7 +306,7 @@ void ThemePainterDefault::setupMenuListArrow(
const int arrowSize = 6;
const int arrowPadding = 6;
extraParams.menuList.arrowX =
- (box.styleRef().direction() == RTL)
+ (box.styleRef().direction() == TextDirection::Rtl)
? rect.x() + arrowPadding * box.styleRef().effectiveZoom() +
box.borderLeft()
: right -

Powered by Google App Engine
This is Rietveld 408576698