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

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

Issue 2936113003: Make EIsolation an enum class. (Closed)
Patch Set: Fix code 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 35b69468ba6d2f5076aeac1fb39f6e41de379a5b..5ef1f820691789b58f3d3a473cbadd3b0062344f 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2359,10 +2359,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EIsolation i)
: CSSValue(kIdentifierClass) {
switch (i) {
- case kIsolationAuto:
+ case EIsolation::kAuto:
value_id_ = CSSValueAuto;
break;
- case kIsolationIsolate:
+ case EIsolation::kIsolate:
value_id_ = CSSValueIsolate;
break;
}
@@ -2372,15 +2372,15 @@ template <>
inline EIsolation CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueAuto:
- return kIsolationAuto;
+ return EIsolation::kAuto;
case CSSValueIsolate:
- return kIsolationIsolate;
+ return EIsolation::kIsolate;
default:
break;
}
NOTREACHED();
- return kIsolationAuto;
+ return EIsolation::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