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 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1981 // -webkit-user-modify | 1981 // -webkit-user-modify |
1982 static EUserModify InitialUserModify() { return EUserModify::kReadOnly; } | 1982 static EUserModify InitialUserModify() { return EUserModify::kReadOnly; } |
1983 EUserModify UserModify() const { | 1983 EUserModify UserModify() const { |
1984 return static_cast<EUserModify>(rare_inherited_data_->user_modify_); | 1984 return static_cast<EUserModify>(rare_inherited_data_->user_modify_); |
1985 } | 1985 } |
1986 void SetUserModify(EUserModify u) { | 1986 void SetUserModify(EUserModify u) { |
1987 SET_VAR(rare_inherited_data_, user_modify_, static_cast<unsigned>(u)); | 1987 SET_VAR(rare_inherited_data_, user_modify_, static_cast<unsigned>(u)); |
1988 } | 1988 } |
1989 | 1989 |
1990 // -webkit-user-select | 1990 // -webkit-user-select |
1991 static EUserSelect InitialUserSelect() { return SELECT_TEXT; } | 1991 static EUserSelect InitialUserSelect() { return EUserSelect::kText; } |
1992 EUserSelect UserSelect() const { | 1992 EUserSelect UserSelect() const { |
1993 return static_cast<EUserSelect>(rare_inherited_data_->user_select_); | 1993 return static_cast<EUserSelect>(rare_inherited_data_->user_select_); |
1994 } | 1994 } |
1995 void SetUserSelect(EUserSelect s) { | 1995 void SetUserSelect(EUserSelect s) { |
1996 SET_VAR(rare_inherited_data_, user_select_, s); | 1996 SET_VAR(rare_inherited_data_, user_select_, static_cast<unsigned>(s)); |
1997 } | 1997 } |
1998 | 1998 |
1999 // caret-color | 1999 // caret-color |
2000 void SetCaretColor(const StyleAutoColor& color) { | 2000 void SetCaretColor(const StyleAutoColor& color) { |
2001 SET_VAR(rare_inherited_data_, caret_color_, color.Resolve(Color())); | 2001 SET_VAR(rare_inherited_data_, caret_color_, color.Resolve(Color())); |
2002 SET_VAR(rare_inherited_data_, caret_color_is_current_color_, | 2002 SET_VAR(rare_inherited_data_, caret_color_is_current_color_, |
2003 color.IsCurrentColor()); | 2003 color.IsCurrentColor()); |
2004 SET_VAR(rare_inherited_data_, caret_color_is_auto_, color.IsAutoColor()); | 2004 SET_VAR(rare_inherited_data_, caret_color_is_auto_, color.IsAutoColor()); |
2005 } | 2005 } |
2006 | 2006 |
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3798 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3798 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3799 } | 3799 } |
3800 | 3800 |
3801 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3801 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3802 return PseudoBitsInternal() & kElementPseudoIdMask; | 3802 return PseudoBitsInternal() & kElementPseudoIdMask; |
3803 } | 3803 } |
3804 | 3804 |
3805 } // namespace blink | 3805 } // namespace blink |
3806 | 3806 |
3807 #endif // ComputedStyle_h | 3807 #endif // ComputedStyle_h |
OLD | NEW |