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

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

Issue 2949453002: Make EFlexDirection an enum class. (Closed)
Patch Set: Fix Created 3 years, 6 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 0aaed5831ecaf20d95ebf94ad9d2ca29bf41b784..33a0f75877eb214966b6d958681a8f0ca0d8331e 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -773,16 +773,16 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EFlexDirection e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kFlowRow:
+ case EFlexDirection::kRow:
value_id_ = CSSValueRow;
break;
- case kFlowRowReverse:
+ case EFlexDirection::kRowReverse:
value_id_ = CSSValueRowReverse;
break;
- case kFlowColumn:
+ case EFlexDirection::kColumn:
value_id_ = CSSValueColumn;
break;
- case kFlowColumnReverse:
+ case EFlexDirection::kColumnReverse:
value_id_ = CSSValueColumnReverse;
break;
}
@@ -792,19 +792,19 @@ template <>
inline EFlexDirection CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueRow:
- return kFlowRow;
+ return EFlexDirection::kRow;
case CSSValueRowReverse:
- return kFlowRowReverse;
+ return EFlexDirection::kRowReverse;
case CSSValueColumn:
- return kFlowColumn;
+ return EFlexDirection::kColumn;
case CSSValueColumnReverse:
- return kFlowColumnReverse;
+ return EFlexDirection::kColumnReverse;
default:
break;
}
NOTREACHED();
- return kFlowRow;
+ return EFlexDirection::kRow;
}
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