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 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 | 1767 |
1768 // -webkit-line-clamp | 1768 // -webkit-line-clamp |
1769 static LineClampValue InitialLineClamp() { return LineClampValue(); } | 1769 static LineClampValue InitialLineClamp() { return LineClampValue(); } |
1770 const LineClampValue& LineClamp() const { | 1770 const LineClampValue& LineClamp() const { |
1771 return rare_non_inherited_data_->line_clamp; | 1771 return rare_non_inherited_data_->line_clamp; |
1772 } | 1772 } |
1773 void SetLineClamp(LineClampValue c) { | 1773 void SetLineClamp(LineClampValue c) { |
1774 SET_VAR(rare_non_inherited_data_, line_clamp, c); | 1774 SET_VAR(rare_non_inherited_data_, line_clamp, c); |
1775 } | 1775 } |
1776 | 1776 |
1777 // -webkit-ruby-position | |
1778 static RubyPosition InitialRubyPosition() { return RubyPosition::kBefore; } | |
1779 RubyPosition GetRubyPosition() const { | |
1780 return static_cast<RubyPosition>(rare_inherited_data_->ruby_position_); | |
1781 } | |
1782 void SetRubyPosition(RubyPosition position) { | |
1783 SET_VAR(rare_inherited_data_, ruby_position_, | |
1784 static_cast<unsigned>(position)); | |
1785 } | |
1786 | |
1787 // -webkit-text-fill-color | 1777 // -webkit-text-fill-color |
1788 void SetTextFillColor(const StyleColor& color) { | 1778 void SetTextFillColor(const StyleColor& color) { |
1789 SET_VAR(rare_inherited_data_, text_fill_color_, color.Resolve(Color())); | 1779 SET_VAR(rare_inherited_data_, text_fill_color_, color.Resolve(Color())); |
1790 SET_VAR(rare_inherited_data_, text_fill_color_is_current_color_, | 1780 SET_VAR(rare_inherited_data_, text_fill_color_is_current_color_, |
1791 color.IsCurrentColor()); | 1781 color.IsCurrentColor()); |
1792 } | 1782 } |
1793 | 1783 |
1794 // -webkit-text-stroke-color | 1784 // -webkit-text-stroke-color |
1795 void SetTextStrokeColor(const StyleColor& color) { | 1785 void SetTextStrokeColor(const StyleColor& color) { |
1796 SET_VAR(rare_inherited_data_, text_stroke_color_, color.Resolve(Color())); | 1786 SET_VAR(rare_inherited_data_, text_stroke_color_, color.Resolve(Color())); |
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3683 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3673 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3684 } | 3674 } |
3685 | 3675 |
3686 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3676 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3687 return PseudoBitsInternal() & kElementPseudoIdMask; | 3677 return PseudoBitsInternal() & kElementPseudoIdMask; |
3688 } | 3678 } |
3689 | 3679 |
3690 } // namespace blink | 3680 } // namespace blink |
3691 | 3681 |
3692 #endif // ComputedStyle_h | 3682 #endif // ComputedStyle_h |
OLD | NEW |