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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2900633003: Make TextEmphasisMark 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
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 2ae6d04a6ea812e4e6019fd9e7c2a6f5468399f7..e65697e21f63e67ca9a6b6490fa40960eef19a1d 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2856,18 +2856,18 @@ const CSSValue* ComputedStyleCSSValueMapping::Get(
return CSSIdentifierValue::Create(style.GetTextEmphasisPosition());
case CSSPropertyWebkitTextEmphasisStyle:
switch (style.GetTextEmphasisMark()) {
- case kTextEmphasisMarkNone:
+ case TextEmphasisMark::kNone:
return CSSIdentifierValue::Create(CSSValueNone);
- case kTextEmphasisMarkCustom:
+ case TextEmphasisMark::kCustom:
return CSSStringValue::Create(style.TextEmphasisCustomMark());
- case kTextEmphasisMarkAuto:
+ case TextEmphasisMark::kAuto:
NOTREACHED();
// Fall through
- case kTextEmphasisMarkDot:
- case kTextEmphasisMarkCircle:
- case kTextEmphasisMarkDoubleCircle:
- case kTextEmphasisMarkTriangle:
- case kTextEmphasisMarkSesame: {
+ case TextEmphasisMark::kDot:
+ case TextEmphasisMark::kCircle:
+ case TextEmphasisMark::kDoubleCircle:
+ case TextEmphasisMark::kTriangle:
+ case TextEmphasisMark::kSesame: {
CSSValueList* list = CSSValueList::CreateSpaceSeparated();
list->Append(
*CSSIdentifierValue::Create(style.GetTextEmphasisFill()));

Powered by Google App Engine
This is Rietveld 408576698