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

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

Issue 2899663003: Make TextEmphasisFill 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/ComputedStyleExtraFields.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 31aaa37643a1651dce1a194bb558329126600d37..6c07e882094a867bbe045319a66bc9cf7dfbe742 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1664,10 +1664,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(TextEmphasisFill fill)
: CSSValue(kIdentifierClass) {
switch (fill) {
- case kTextEmphasisFillFilled:
+ case TextEmphasisFill::kFilled:
value_id_ = CSSValueFilled;
break;
- case kTextEmphasisFillOpen:
+ case TextEmphasisFill::kOpen:
value_id_ = CSSValueOpen;
break;
}
@@ -1677,15 +1677,15 @@ template <>
inline TextEmphasisFill CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueFilled:
- return kTextEmphasisFillFilled;
+ return TextEmphasisFill::kFilled;
case CSSValueOpen:
- return kTextEmphasisFillOpen;
+ return TextEmphasisFill::kOpen;
default:
break;
}
NOTREACHED();
- return kTextEmphasisFillFilled;
+ return TextEmphasisFill::kFilled;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698