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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

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/ThemePainterMac.mm
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
index 45af2658e0aed00a95dc3d03b09243da822abfaf..54f9b7eac56f0e0df350f119e0b290b6ce7972ee 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
+++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
@@ -135,7 +135,7 @@ bool ThemePainterMac::paintCapsLockIndicator(const LayoutObject& o,
CGFloat minX = CGRectGetMinX(cgr);
CGFloat minY = CGRectGetMinY(cgr);
CGFloat heightScale = r.height() / kSquareSize;
- bool isRTL = o.styleRef().direction() == RTL;
+ const bool isRTL = o.styleRef().direction() == TextDirection::Rtl;
CGAffineTransform transform =
CGAffineTransformMake(heightScale, 0, // A B
0, heightScale, // C D
@@ -283,7 +283,7 @@ bool ThemePainterMac::paintMenuListButton(const LayoutObject& o,
float scaledPaddingEnd =
LayoutThemeMac::menuListArrowPaddingEnd * o.styleRef().effectiveZoom();
float leftEdge;
- if (o.styleRef().direction() == LTR) {
+ if (o.styleRef().direction() == TextDirection::Ltr) {
leftEdge = bounds.maxX() - scaledPaddingEnd - arrowWidth;
} else {
leftEdge = bounds.x() + scaledPaddingEnd;
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698