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

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

Issue 2845773002: Make TextDecoration an enum class. (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/ComputedStyleCSSValueMapping.cpp » ('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..d699d124e203162f64d0b5f71eccbc002ebae00c 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1283,21 +1283,21 @@ template <>
inline TextDecoration CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueNone:
- return kTextDecorationNone;
+ return TextDecoration::kNone;
case CSSValueUnderline:
- return kTextDecorationUnderline;
+ return TextDecoration::kUnderline;
case CSSValueOverline:
- return kTextDecorationOverline;
+ return TextDecoration::kOverline;
case CSSValueLineThrough:
- return kTextDecorationLineThrough;
+ return TextDecoration::kLineThrough;
case CSSValueBlink:
- return kTextDecorationBlink;
+ return TextDecoration::kBlink;
default:
break;
}
NOTREACHED();
- return kTextDecorationNone;
+ return TextDecoration::kNone;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698