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

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

Issue 2911383002: Generate enum/getters/setters/mappings for line-break. (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 70fe4f80755cbb2c442de8ca6538ee420a8348ac..27e49eab52e2d4068734dd81003ada57603523fc 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -874,49 +874,6 @@ inline EFloat CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(LineBreak e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case LineBreak::kAuto:
- value_id_ = CSSValueAuto;
- break;
- case LineBreak::kLoose:
- value_id_ = CSSValueLoose;
- break;
- case LineBreak::kNormal:
- value_id_ = CSSValueNormal;
- break;
- case LineBreak::kStrict:
- value_id_ = CSSValueStrict;
- break;
- case LineBreak::kAfterWhiteSpace:
- value_id_ = CSSValueAfterWhiteSpace;
- break;
- }
-}
-
-template <>
-inline LineBreak CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueAuto:
- return LineBreak::kAuto;
- case CSSValueLoose:
- return LineBreak::kLoose;
- case CSSValueNormal:
- return LineBreak::kNormal;
- case CSSValueStrict:
- return LineBreak::kStrict;
- case CSSValueAfterWhiteSpace:
- return LineBreak::kAfterWhiteSpace;
- default:
- break;
- }
-
- NOTREACHED();
- return LineBreak::kAuto;
-}
-
-template <>
inline CSSIdentifierValue::CSSIdentifierValue(EMarginCollapse 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