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

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: 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/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();
« no previous file with comments | « third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698