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

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

Issue 2915543002: Generate enum/getters/setters/mappings for text-align-last. (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 c8315147abd2ff3093ed3939beaea39319ac3270..70fe4f80755cbb2c442de8ca6538ee420a8348ac 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1063,59 +1063,6 @@ inline ETableLayout CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(TextAlignLast e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case TextAlignLast::kStart:
- value_id_ = CSSValueStart;
- break;
- case TextAlignLast::kEnd:
- value_id_ = CSSValueEnd;
- break;
- case TextAlignLast::kLeft:
- value_id_ = CSSValueLeft;
- break;
- case TextAlignLast::kRight:
- value_id_ = CSSValueRight;
- break;
- case TextAlignLast::kCenter:
- value_id_ = CSSValueCenter;
- break;
- case TextAlignLast::kJustify:
- value_id_ = CSSValueJustify;
- break;
- case TextAlignLast::kAuto:
- value_id_ = CSSValueAuto;
- break;
- }
-}
-
-template <>
-inline TextAlignLast CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueAuto:
- return TextAlignLast::kAuto;
- case CSSValueStart:
- return TextAlignLast::kStart;
- case CSSValueEnd:
- return TextAlignLast::kEnd;
- case CSSValueLeft:
- return TextAlignLast::kLeft;
- case CSSValueRight:
- return TextAlignLast::kRight;
- case CSSValueCenter:
- return TextAlignLast::kCenter;
- case CSSValueJustify:
- return TextAlignLast::kJustify;
- default:
- break;
- }
-
- NOTREACHED();
- return TextAlignLast::kAuto;
-}
-
-template <>
inline CSSIdentifierValue::CSSIdentifierValue(TextJustify 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