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

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

Issue 2912683002: Generate methods for Hyphens and HyphenationString in ComputedStyleBase. (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 91e2a87d743525075cc1a35a836b737349a6c664..37a141739d2a5becdec3e90b81008e5188f7c734 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -874,39 +874,6 @@ inline EFloat CSSIdentifierValue::ConvertTo() const {
}
template <>
-inline CSSIdentifierValue::CSSIdentifierValue(Hyphens e)
- : CSSValue(kIdentifierClass) {
- switch (e) {
- case Hyphens::kAuto:
- value_id_ = CSSValueAuto;
- break;
- case Hyphens::kManual:
- value_id_ = CSSValueManual;
- break;
- case Hyphens::kNone:
- value_id_ = CSSValueNone;
- break;
- }
-}
-
-template <>
-inline Hyphens CSSIdentifierValue::ConvertTo() const {
- switch (value_id_) {
- case CSSValueAuto:
- return Hyphens::kAuto;
- case CSSValueManual:
- return Hyphens::kManual;
- case CSSValueNone:
- return Hyphens::kNone;
- default:
- break;
- }
-
- NOTREACHED();
- return Hyphens::kManual;
-}
-
-template <>
inline CSSIdentifierValue::CSSIdentifierValue(LineBreak 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