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

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

Issue 2897883002: Make RubyPosition 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..62437b73d73e735d2a59e7f4f7d7b8f6bd63ba54 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1810,12 +1810,13 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// -webkit-ruby-position
- static RubyPosition InitialRubyPosition() { return kRubyPositionBefore; }
+ static RubyPosition InitialRubyPosition() { return RubyPosition::kBefore; }
RubyPosition GetRubyPosition() const {
return static_cast<RubyPosition>(rare_inherited_data_->ruby_position_);
}
void SetRubyPosition(RubyPosition position) {
- SET_VAR(rare_inherited_data_, ruby_position_, position);
+ SET_VAR(rare_inherited_data_, ruby_position_,
+ static_cast<unsigned>(position));
}
// -webkit-tap-highlight-color

Powered by Google App Engine
This is Rietveld 408576698