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

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

Issue 2942393002: Generate enum/getters/setters/mappings for flex-direction (Closed)
Patch Set: Retry Created 3 years, 6 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 b307c8423664fcde675610861aa1534d0c3f6e4d..2a24989bd73212d56e2be415e97e6a9d999f2c8e 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -630,44 +630,6 @@ inline BackgroundEdgeOrigin CSSIdentifierValue::ConvertTo() const {
return kTopEdge;
}
-template <>
-inline CSSIdentifierValue::CSSIdentifierValue(EFlexDirection e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case EFlexDirection::kRow:
- value_id_ = CSSValueRow;
- break;
- case EFlexDirection::kRowReverse:
- value_id_ = CSSValueRowReverse;
- break;
- case EFlexDirection::kColumn:
- value_id_ = CSSValueColumn;
- break;
- case EFlexDirection::kColumnReverse:
- value_id_ = CSSValueColumnReverse;
- break;
- }
-}
-
-template <>
-inline EFlexDirection CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueRow:
- return EFlexDirection::kRow;
- case CSSValueRowReverse:
- return EFlexDirection::kRowReverse;
- case CSSValueColumn:
- return EFlexDirection::kColumn;
- case CSSValueColumnReverse:
- return EFlexDirection::kColumnReverse;
- default:
- break;
- }
-
- NOTREACHED();
- return EFlexDirection::kRow;
-}
-
template <>
inline CSSIdentifierValue::CSSIdentifierValue(EFlexWrap e)
: CSSValue(kIdentifierClass) {
« 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