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

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

Issue 2521463002: Changed EBoxDirection to an enum class and renamed its members to keywords (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/layout/LayoutDeprecatedFlexibleBox.cpp » ('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 b36d0158d83b69021935340649024088f6002002..2e51a2bf9ec66bcf100b0eac2a41cf845a8cf3a3 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -840,10 +840,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EBoxDirection e)
: CSSValue(IdentifierClass) {
switch (e) {
- case BNORMAL:
+ case EBoxDirection::Normal:
m_valueID = CSSValueNormal;
break;
- case BREVERSE:
+ case EBoxDirection::Reverse:
m_valueID = CSSValueReverse;
break;
}
@@ -853,15 +853,15 @@ template <>
inline EBoxDirection CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueNormal:
- return BNORMAL;
+ return EBoxDirection::Normal;
case CSSValueReverse:
- return BREVERSE;
+ return EBoxDirection::Reverse;
default:
break;
}
ASSERT_NOT_REACHED();
- return BNORMAL;
+ return EBoxDirection::Normal;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698