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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.json5 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 91e2a87d743525075cc1a35a836b737349a6c664..e0dbc4d51256969ca862258faa49473173c4e7e6 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1099,25 +1099,25 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(TextAlignLast e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kTextAlignLastStart:
+ case TextAlignLast::kStart:
value_id_ = CSSValueStart;
break;
- case kTextAlignLastEnd:
+ case TextAlignLast::kEnd:
value_id_ = CSSValueEnd;
break;
- case kTextAlignLastLeft:
+ case TextAlignLast::kLeft:
value_id_ = CSSValueLeft;
break;
- case kTextAlignLastRight:
+ case TextAlignLast::kRight:
value_id_ = CSSValueRight;
break;
- case kTextAlignLastCenter:
+ case TextAlignLast::kCenter:
value_id_ = CSSValueCenter;
break;
- case kTextAlignLastJustify:
+ case TextAlignLast::kJustify:
value_id_ = CSSValueJustify;
break;
- case kTextAlignLastAuto:
+ case TextAlignLast::kAuto:
value_id_ = CSSValueAuto;
break;
}
@@ -1127,25 +1127,25 @@ template <>
inline TextAlignLast CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueAuto:
- return kTextAlignLastAuto;
+ return TextAlignLast::kAuto;
case CSSValueStart:
- return kTextAlignLastStart;
+ return TextAlignLast::kStart;
case CSSValueEnd:
- return kTextAlignLastEnd;
+ return TextAlignLast::kEnd;
case CSSValueLeft:
- return kTextAlignLastLeft;
+ return TextAlignLast::kLeft;
case CSSValueRight:
- return kTextAlignLastRight;
+ return TextAlignLast::kRight;
case CSSValueCenter:
- return kTextAlignLastCenter;
+ return TextAlignLast::kCenter;
case CSSValueJustify:
- return kTextAlignLastJustify;
+ return TextAlignLast::kJustify;
default:
break;
}
NOTREACHED();
- return kTextAlignLastAuto;
+ return TextAlignLast::kAuto;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698