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

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

Issue 2911963004: Generate enum/getters/setters/mappings for user-select. (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/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 70fe4f80755cbb2c442de8ca6538ee420a8348ac..6c294c1437f51a43c52a8936e8a9881ca4a2057e 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1258,41 +1258,6 @@ inline EUserModify CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(EUserSelect e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case EUserSelect::kNone:
- value_id_ = CSSValueNone;
- break;
- case EUserSelect::kText:
- value_id_ = CSSValueText;
- break;
- case EUserSelect::kAll:
- value_id_ = CSSValueAll;
- break;
- }
-}
-
-template <>
-inline EUserSelect CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueAuto:
- return EUserSelect::kText;
- case CSSValueNone:
- return EUserSelect::kNone;
- case CSSValueText:
- return EUserSelect::kText;
- case CSSValueAll:
- return EUserSelect::kAll;
- default:
- break;
- }
-
- NOTREACHED();
- return EUserSelect::kText;
-}
-
-template <>
inline CSSIdentifierValue::CSSIdentifierValue(EVerticalAlign a)
: CSSValue(kIdentifierClass) {
switch (a) {
« 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