OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |