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

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

Issue 2853433003: Generate enum/getters/setters/mappings for box-sizing. (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 0fe64a79727c18e7f541dde00ac662ca69bdc6fd..fbb26569ae35c88ad9aebdce86694d6d23c845d6 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -776,34 +776,6 @@ inline BackgroundEdgeOrigin CSSIdentifierValue::ConvertTo() const {
return kTopEdge;
}
-template <>
-inline CSSIdentifierValue::CSSIdentifierValue(EBoxSizing e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case EBoxSizing::kBorderBox:
- value_id_ = CSSValueBorderBox;
- break;
- case EBoxSizing::kContentBox:
- value_id_ = CSSValueContentBox;
- break;
- }
-}
-
-template <>
-inline EBoxSizing CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueBorderBox:
- return EBoxSizing::kBorderBox;
- case CSSValueContentBox:
- return EBoxSizing::kContentBox;
- default:
- break;
- }
-
- NOTREACHED();
- return EBoxSizing::kBorderBox;
-}
-
template <>
inline CSSIdentifierValue::CSSIdentifierValue(EBoxLines 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