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

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

Issue 2895883002: Make TextEmphasisPosition 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 43a50f38e72e63e93ccdbaceed4dc926c299b7ea..d7dcd8de2c52c335b649ad47eaebe5506ee724e2 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1781,14 +1781,15 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// -webkit-text-emphasis-position
static TextEmphasisPosition InitialTextEmphasisPosition() {
- return kTextEmphasisPositionOver;
+ return TextEmphasisPosition::kOver;
}
TextEmphasisPosition GetTextEmphasisPosition() const {
return static_cast<TextEmphasisPosition>(
rare_inherited_data_->text_emphasis_position_);
}
void SetTextEmphasisPosition(TextEmphasisPosition position) {
- SET_VAR(rare_inherited_data_, text_emphasis_position_, position);
+ SET_VAR(rare_inherited_data_, text_emphasis_position_,
+ static_cast<unsigned>(position));
}
// -webkit-highlight

Powered by Google App Engine
This is Rietveld 408576698