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

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

Issue 2896723003: Generate enum/getters/setters/mappings for speak. (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 6c07e882094a867bbe045319a66bc9cf7dfbe742..a2a0a6c2edfe02a34495a8ae6cc19be314ed9162 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2121,31 +2121,6 @@ inline TextRenderingMode CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(ESpeak e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case ESpeak::kNone:
- value_id_ = CSSValueNone;
- break;
- case ESpeak::kNormal:
- value_id_ = CSSValueNormal;
- break;
- case ESpeak::kSpellOut:
- value_id_ = CSSValueSpellOut;
- break;
- case ESpeak::kDigits:
- value_id_ = CSSValueDigits;
- break;
- case ESpeak::kLiteralPunctuation:
- value_id_ = CSSValueLiteralPunctuation;
- break;
- case ESpeak::kNoPunctuation:
- value_id_ = CSSValueNoPunctuation;
- break;
- }
-}
-
-template <>
inline EOrder CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueLogical:
@@ -2174,29 +2149,6 @@ inline CSSIdentifierValue::CSSIdentifierValue(EOrder e)
}
template <>
-inline ESpeak CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueNone:
- return ESpeak::kNone;
- case CSSValueNormal:
- return ESpeak::kNormal;
- case CSSValueSpellOut:
- return ESpeak::kSpellOut;
- case CSSValueDigits:
- return ESpeak::kDigits;
- case CSSValueLiteralPunctuation:
- return ESpeak::kLiteralPunctuation;
- case CSSValueNoPunctuation:
- return ESpeak::kNoPunctuation;
- default:
- break;
- }
-
- NOTREACHED();
- return ESpeak::kNormal;
-}
-
-template <>
inline CSSIdentifierValue::CSSIdentifierValue(WebBlendMode blend_mode)
: CSSValue(kIdentifierClass) {
switch (blend_mode) {
« 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