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

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

Issue 2911583002: Generate enum/getters/setters/mappings for text-security. (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/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 ef50851e579e859a84e8da399bba326ddd370bbd..f499820d4bda86a3ef04680bae948002543adfb1 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1276,44 +1276,6 @@ inline TextDecorationSkip CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(ETextSecurity e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case ETextSecurity::kNone:
- value_id_ = CSSValueNone;
- break;
- case ETextSecurity::kDisc:
- value_id_ = CSSValueDisc;
- break;
- case ETextSecurity::kCircle:
- value_id_ = CSSValueCircle;
- break;
- case ETextSecurity::kSquare:
- value_id_ = CSSValueSquare;
- break;
- }
-}
-
-template <>
-inline ETextSecurity CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueNone:
- return ETextSecurity::kNone;
- case CSSValueDisc:
- return ETextSecurity::kDisc;
- case CSSValueCircle:
- return ETextSecurity::kCircle;
- case CSSValueSquare:
- return ETextSecurity::kSquare;
- default:
- break;
- }
-
- NOTREACHED();
- return ETextSecurity::kNone;
-}
-
-template <>
inline CSSIdentifierValue::CSSIdentifierValue(EUserDrag e)
: CSSValue(kIdentifierClass) {
switch (e) {
« 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