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

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

Issue 2913703002: Make TextAlignLast an enum class. (Closed)
Patch Set: make enum class 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 9823d00a0dcc8a64af401490b4aef5d22413a90f..3bc943427c6fcce8469a6305034114c3569ac62c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1702,12 +1702,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// text-align-last
- static TextAlignLast InitialTextAlignLast() { return kTextAlignLastAuto; }
+ static TextAlignLast InitialTextAlignLast() { return TextAlignLast::kAuto; }
TextAlignLast GetTextAlignLast() const {
return static_cast<TextAlignLast>(rare_inherited_data_->text_align_last_);
}
void SetTextAlignLast(TextAlignLast v) {
- SET_VAR(rare_inherited_data_, text_align_last_, v);
+ SET_VAR(rare_inherited_data_, text_align_last_, static_cast<unsigned>(v));
}
// text-combine-upright (aka -webkit-text-combine, -epub-text-combine)

Powered by Google App Engine
This is Rietveld 408576698