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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2897883002: Make RubyPosition an enum class. (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 // -webkit-line-clamp 1803 // -webkit-line-clamp
1804 static LineClampValue InitialLineClamp() { return LineClampValue(); } 1804 static LineClampValue InitialLineClamp() { return LineClampValue(); }
1805 const LineClampValue& LineClamp() const { 1805 const LineClampValue& LineClamp() const {
1806 return rare_non_inherited_data_->line_clamp; 1806 return rare_non_inherited_data_->line_clamp;
1807 } 1807 }
1808 void SetLineClamp(LineClampValue c) { 1808 void SetLineClamp(LineClampValue c) {
1809 SET_VAR(rare_non_inherited_data_, line_clamp, c); 1809 SET_VAR(rare_non_inherited_data_, line_clamp, c);
1810 } 1810 }
1811 1811
1812 // -webkit-ruby-position 1812 // -webkit-ruby-position
1813 static RubyPosition InitialRubyPosition() { return kRubyPositionBefore; } 1813 static RubyPosition InitialRubyPosition() { return RubyPosition::kBefore; }
1814 RubyPosition GetRubyPosition() const { 1814 RubyPosition GetRubyPosition() const {
1815 return static_cast<RubyPosition>(rare_inherited_data_->ruby_position_); 1815 return static_cast<RubyPosition>(rare_inherited_data_->ruby_position_);
1816 } 1816 }
1817 void SetRubyPosition(RubyPosition position) { 1817 void SetRubyPosition(RubyPosition position) {
1818 SET_VAR(rare_inherited_data_, ruby_position_, position); 1818 SET_VAR(rare_inherited_data_, ruby_position_,
1819 static_cast<unsigned>(position));
1819 } 1820 }
1820 1821
1821 // -webkit-tap-highlight-color 1822 // -webkit-tap-highlight-color
1822 static Color InitialTapHighlightColor(); 1823 static Color InitialTapHighlightColor();
1823 Color TapHighlightColor() const { 1824 Color TapHighlightColor() const {
1824 return rare_inherited_data_->tap_highlight_color_; 1825 return rare_inherited_data_->tap_highlight_color_;
1825 } 1826 }
1826 void SetTapHighlightColor(const Color& c) { 1827 void SetTapHighlightColor(const Color& c) {
1827 SET_VAR(rare_inherited_data_, tap_highlight_color_, c); 1828 SET_VAR(rare_inherited_data_, tap_highlight_color_, c);
1828 } 1829 }
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
3745 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3746 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3746 } 3747 }
3747 3748
3748 inline bool ComputedStyle::HasPseudoElementStyle() const { 3749 inline bool ComputedStyle::HasPseudoElementStyle() const {
3749 return PseudoBitsInternal() & kElementPseudoIdMask; 3750 return PseudoBitsInternal() & kElementPseudoIdMask;
3750 } 3751 }
3751 3752
3752 } // namespace blink 3753 } // namespace blink
3753 3754
3754 #endif // ComputedStyle_h 3755 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698