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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 89b4171f5c12f358dacabc5c453a48caa51f97da..4d76918951ac10af88f0398f78577e95881051b7 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1668,7 +1668,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
static TextIndentLine InitialTextIndentLine() {
return TextIndentLine::kFirstLine;
}
- static TextIndentType InitialTextIndentType() { return kTextIndentNormal; }
+ static TextIndentType InitialTextIndentType() {
+ return TextIndentType::kNormal;
+ }
const Length& TextIndent() const {
return rare_inherited_data_->text_indent_;
}
@@ -1685,7 +1687,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
SET_VAR(rare_inherited_data_, text_indent_line_, static_cast<unsigned>(v));
}
void SetTextIndentType(TextIndentType v) {
- SET_VAR(rare_inherited_data_, text_indent_type_, v);
+ SET_VAR(rare_inherited_data_, text_indent_type_, static_cast<unsigned>(v));
}
// text-justify

Powered by Google App Engine
This is Rietveld 408576698