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

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

Issue 2909423002: Make TextUnderlinePosition 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 aec4bd46d6b9d3bdc12a756d13a7e73a06934c55..5ec0fab502ac330ed126adf43ab81d8e3de6d33c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1475,14 +1475,15 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// text-underline-position
static TextUnderlinePosition InitialTextUnderlinePosition() {
- return kTextUnderlinePositionAuto;
+ return TextUnderlinePosition::kAuto;
}
TextUnderlinePosition GetTextUnderlinePosition() const {
return static_cast<TextUnderlinePosition>(
rare_inherited_data_->text_underline_position_);
}
void SetTextUnderlinePosition(TextUnderlinePosition v) {
- SET_VAR(rare_inherited_data_, text_underline_position_, v);
+ SET_VAR(rare_inherited_data_, text_underline_position_,
+ static_cast<unsigned>(v));
}
// text-decoration-skip

Powered by Google App Engine
This is Rietveld 408576698