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

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

Issue 2905493008: Make TextIndentType 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..2dc99044c8097dcf8e2bdb0896a11071bb57b7d9 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2881,10 +2881,10 @@ const CSSValue* ComputedStyleCSSValueMapping::Get(
list->Append(*ZoomAdjustedPixelValueForLength(style.TextIndent(), style));
if (RuntimeEnabledFeatures::css3TextEnabled() &&
(style.GetTextIndentLine() == TextIndentLine::kEachLine ||
- style.GetTextIndentType() == kTextIndentHanging)) {
+ style.GetTextIndentType() == TextIndentType::kHanging)) {
if (style.GetTextIndentLine() == TextIndentLine::kEachLine)
list->Append(*CSSIdentifierValue::Create(CSSValueEachLine));
- if (style.GetTextIndentType() == kTextIndentHanging)
+ if (style.GetTextIndentType() == TextIndentType::kHanging)
list->Append(*CSSIdentifierValue::Create(CSSValueHanging));
}
return list;

Powered by Google App Engine
This is Rietveld 408576698