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 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 | 1809 |
1810 // -webkit-user-modify | 1810 // -webkit-user-modify |
1811 static EUserModify InitialUserModify() { return EUserModify::kReadOnly; } | 1811 static EUserModify InitialUserModify() { return EUserModify::kReadOnly; } |
1812 EUserModify UserModify() const { | 1812 EUserModify UserModify() const { |
1813 return static_cast<EUserModify>(rare_inherited_data_->user_modify_); | 1813 return static_cast<EUserModify>(rare_inherited_data_->user_modify_); |
1814 } | 1814 } |
1815 void SetUserModify(EUserModify u) { | 1815 void SetUserModify(EUserModify u) { |
1816 SET_VAR(rare_inherited_data_, user_modify_, static_cast<unsigned>(u)); | 1816 SET_VAR(rare_inherited_data_, user_modify_, static_cast<unsigned>(u)); |
1817 } | 1817 } |
1818 | 1818 |
1819 // -webkit-user-select | |
1820 static EUserSelect InitialUserSelect() { return EUserSelect::kText; } | |
1821 EUserSelect UserSelect() const { | |
1822 return static_cast<EUserSelect>(rare_inherited_data_->user_select_); | |
1823 } | |
1824 void SetUserSelect(EUserSelect s) { | |
1825 SET_VAR(rare_inherited_data_, user_select_, static_cast<unsigned>(s)); | |
1826 } | |
1827 | |
1828 // caret-color | 1819 // caret-color |
1829 void SetCaretColor(const StyleAutoColor& color) { | 1820 void SetCaretColor(const StyleAutoColor& color) { |
1830 SET_VAR(rare_inherited_data_, caret_color_, color.Resolve(Color())); | 1821 SET_VAR(rare_inherited_data_, caret_color_, color.Resolve(Color())); |
1831 SET_VAR(rare_inherited_data_, caret_color_is_current_color_, | 1822 SET_VAR(rare_inherited_data_, caret_color_is_current_color_, |
1832 color.IsCurrentColor()); | 1823 color.IsCurrentColor()); |
1833 SET_VAR(rare_inherited_data_, caret_color_is_auto_, color.IsAutoColor()); | 1824 SET_VAR(rare_inherited_data_, caret_color_is_auto_, color.IsAutoColor()); |
1834 } | 1825 } |
1835 | 1826 |
1836 // Font properties. | 1827 // Font properties. |
1837 const Font& GetFont() const; | 1828 const Font& GetFont() const; |
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3683 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3674 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3684 } | 3675 } |
3685 | 3676 |
3686 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3677 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3687 return PseudoBitsInternal() & kElementPseudoIdMask; | 3678 return PseudoBitsInternal() & kElementPseudoIdMask; |
3688 } | 3679 } |
3689 | 3680 |
3690 } // namespace blink | 3681 } // namespace blink |
3691 | 3682 |
3692 #endif // ComputedStyle_h | 3683 #endif // ComputedStyle_h |
OLD | NEW |