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

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

Issue 2845893002: Make EBoxDecorationBreak an enum class. (Closed)
Patch Set: Rebase Created 3 years, 8 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/ComputedStyleCSSValueMapping.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 60b8cf6dd1da47a4a14821181f3cc1eb3a11076b..788258b4826df230cb6057858ab57a73c97a858e 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -713,10 +713,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EBoxDecorationBreak e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kBoxDecorationBreakSlice:
+ case EBoxDecorationBreak::kSlice:
value_id_ = CSSValueSlice;
break;
- case kBoxDecorationBreakClone:
+ case EBoxDecorationBreak::kClone:
value_id_ = CSSValueClone;
break;
}
@@ -726,15 +726,15 @@ template <>
inline EBoxDecorationBreak CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueSlice:
- return kBoxDecorationBreakSlice;
+ return EBoxDecorationBreak::kSlice;
case CSSValueClone:
- return kBoxDecorationBreakClone;
+ return EBoxDecorationBreak::kClone;
default:
break;
}
NOTREACHED();
- return kBoxDecorationBreakSlice;
+ return EBoxDecorationBreak::kSlice;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698