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

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

Issue 2882093002: Make EUserSelect an enum class. (Closed)
Patch Set: Rebase 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/dom/Node.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 20f57d1686e18e51bc490e7d0ae54090446d0f25..a331ff2bc88cafbd37773f9b303fdfdf2610b2d2 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1422,13 +1422,13 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EUserSelect e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case SELECT_NONE:
+ case EUserSelect::kNone:
value_id_ = CSSValueNone;
break;
- case SELECT_TEXT:
+ case EUserSelect::kText:
value_id_ = CSSValueText;
break;
- case SELECT_ALL:
+ case EUserSelect::kAll:
value_id_ = CSSValueAll;
break;
}
@@ -1438,19 +1438,19 @@ template <>
inline EUserSelect CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueAuto:
- return SELECT_TEXT;
+ return EUserSelect::kText;
case CSSValueNone:
- return SELECT_NONE;
+ return EUserSelect::kNone;
case CSSValueText:
- return SELECT_TEXT;
+ return EUserSelect::kText;
case CSSValueAll:
- return SELECT_ALL;
+ return EUserSelect::kAll;
default:
break;
}
NOTREACHED();
- return SELECT_TEXT;
+ return EUserSelect::kText;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698