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

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

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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 43a50f38e72e63e93ccdbaceed4dc926c299b7ea..015359129b98846414a1331d8391748a0d1e01eb 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1664,7 +1664,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// text-indent
static Length InitialTextIndent() { return Length(kFixed); }
- static TextIndentLine InitialTextIndentLine() { return kTextIndentFirstLine; }
+ static TextIndentLine InitialTextIndentLine() {
+ return TextIndentLine::kFirstLine;
+ }
static TextIndentType InitialTextIndentType() { return kTextIndentNormal; }
const Length& TextIndent() const {
return rare_inherited_data_->text_indent_;
@@ -1679,7 +1681,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
SET_VAR(rare_inherited_data_, text_indent_, v);
}
void SetTextIndentLine(TextIndentLine v) {
- SET_VAR(rare_inherited_data_, text_indent_line_, v);
+ 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);

Powered by Google App Engine
This is Rietveld 408576698