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

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

Issue 2912923003: Generate enum/getters/setters/mappings for user-modify. (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 99afef73b5700e5e4179586a3d1b5ca9ba00ecd5..c7e7630a14f24b1dd8ba3cd1b857687e916fd589 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1182,39 +1182,6 @@ inline EUserDrag CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(EUserModify e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case EUserModify::kReadOnly:
- value_id_ = CSSValueReadOnly;
- break;
- case EUserModify::kReadWrite:
- value_id_ = CSSValueReadWrite;
- break;
- case EUserModify::kReadWritePlaintextOnly:
- value_id_ = CSSValueReadWritePlaintextOnly;
- break;
- }
-}
-
-template <>
-inline EUserModify CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueReadOnly:
- return EUserModify::kReadOnly;
- case CSSValueReadWrite:
- return EUserModify::kReadWrite;
- case CSSValueReadWritePlaintextOnly:
- return EUserModify::kReadWritePlaintextOnly;
- default:
- break;
- }
-
- NOTREACHED();
- return EUserModify::kReadOnly;
-}
-
-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