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

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

Issue 2868783005: Make ETextSecurity 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/editing/EditingUtilities.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 0fe64a79727c18e7f541dde00ac662ca69bdc6fd..cafc5875a01ab80f0a105a601219c7ef72a87ca6 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1372,16 +1372,16 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(ETextSecurity e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case TSNONE:
+ case ETextSecurity::kNone:
value_id_ = CSSValueNone;
break;
- case TSDISC:
+ case ETextSecurity::kDisc:
value_id_ = CSSValueDisc;
break;
- case TSCIRCLE:
+ case ETextSecurity::kCircle:
value_id_ = CSSValueCircle;
break;
- case TSSQUARE:
+ case ETextSecurity::kSquare:
value_id_ = CSSValueSquare;
break;
}
@@ -1391,19 +1391,19 @@ template <>
inline ETextSecurity CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueNone:
- return TSNONE;
+ return ETextSecurity::kNone;
case CSSValueDisc:
- return TSDISC;
+ return ETextSecurity::kDisc;
case CSSValueCircle:
- return TSCIRCLE;
+ return ETextSecurity::kCircle;
case CSSValueSquare:
- return TSSQUARE;
+ return ETextSecurity::kSquare;
default:
break;
}
NOTREACHED();
- return TSNONE;
+ return ETextSecurity::kNone;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698