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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp

Issue 2913703002: Make TextAlignLast an enum class. (Closed)
Patch Set: make enum class Created 3 years, 7 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/layout/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 1617f67c809758d860e6034d41bfa1637e9e3b67..5d32340f087f2dbcdea2751c5e1657e2c049b876 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -367,19 +367,19 @@ ETextAlign LayoutBlockFlow::TextAlignmentForLine(
TextAlignLast alignment_last = Style()->GetTextAlignLast();
switch (alignment_last) {
- case kTextAlignLastStart:
+ case TextAlignLast::kStart:
return ETextAlign::kStart;
- case kTextAlignLastEnd:
+ case TextAlignLast::kEnd:
return ETextAlign::kEnd;
- case kTextAlignLastLeft:
+ case TextAlignLast::kLeft:
return ETextAlign::kLeft;
- case kTextAlignLastRight:
+ case TextAlignLast::kRight:
return ETextAlign::kRight;
- case kTextAlignLastCenter:
+ case TextAlignLast::kCenter:
return ETextAlign::kCenter;
- case kTextAlignLastJustify:
+ case TextAlignLast::kJustify:
return ETextAlign::kJustify;
- case kTextAlignLastAuto:
+ case TextAlignLast::kAuto:
if (alignment == ETextAlign::kJustify)
return ETextAlign::kStart;
return alignment;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698