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

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

Issue 2905203002: Make TextIndentLine an enum class. (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
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 1192364103285936c159c24209515a8382b4ff2e..152d972b71e7249d8366520b2e2459e5ada5c135 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2880,9 +2880,9 @@ const CSSValue* ComputedStyleCSSValueMapping::Get(
CSSValueList* list = CSSValueList::CreateSpaceSeparated();
list->Append(*ZoomAdjustedPixelValueForLength(style.TextIndent(), style));
if (RuntimeEnabledFeatures::css3TextEnabled() &&
- (style.GetTextIndentLine() == kTextIndentEachLine ||
+ (style.GetTextIndentLine() == TextIndentLine::kEachLine ||
style.GetTextIndentType() == kTextIndentHanging)) {
- if (style.GetTextIndentLine() == kTextIndentEachLine)
+ if (style.GetTextIndentLine() == TextIndentLine::kEachLine)
list->Append(*CSSIdentifierValue::Create(CSSValueEachLine));
if (style.GetTextIndentType() == kTextIndentHanging)
list->Append(*CSSIdentifierValue::Create(CSSValueHanging));

Powered by Google App Engine
This is Rietveld 408576698