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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months 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 54f9b7eac56f0e0df350f119e0b290b6ce7972ee..bc90261b0979f4b3c507a4f60b543d732975a0c3 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;
- const bool isRTL = o.styleRef().direction() == TextDirection::Rtl;
+ const bool isRTL = o.styleRef().direction() == TextDirection::kRtl;
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() == TextDirection::Ltr) {
+ if (o.styleRef().direction() == TextDirection::kLtr) {
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