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

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

Issue 2878333002: Make ETextModify an enum class. (Closed)
Patch Set: 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/resolver/StyleAdjuster.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 c3466148e3ae45dd96b879caff0546d977372430..48e02d0416288e50ce6f3442fe5e037263d3943f 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1445,13 +1445,13 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EUserModify e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case READ_ONLY:
+ case EUserModify::kReadOnly:
value_id_ = CSSValueReadOnly;
break;
- case READ_WRITE:
+ case EUserModify::kReadWrite:
value_id_ = CSSValueReadWrite;
break;
- case READ_WRITE_PLAINTEXT_ONLY:
+ case EUserModify::kReadWritePlaintextOnly:
value_id_ = CSSValueReadWritePlaintextOnly;
break;
}
@@ -1461,17 +1461,17 @@ template <>
inline EUserModify CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueReadOnly:
- return READ_ONLY;
+ return EUserModify::kReadOnly;
case CSSValueReadWrite:
- return READ_WRITE;
+ return EUserModify::kReadWrite;
case CSSValueReadWritePlaintextOnly:
- return READ_WRITE_PLAINTEXT_ONLY;
+ return EUserModify::kReadWritePlaintextOnly;
default:
break;
}
NOTREACHED();
- return READ_ONLY;
+ return EUserModify::kReadOnly;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698