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 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 static_cast<unsigned>(a_text_security)); | 1881 static_cast<unsigned>(a_text_security)); |
1882 } | 1882 } |
1883 | 1883 |
1884 // -webkit-text-stroke-color | 1884 // -webkit-text-stroke-color |
1885 void SetTextStrokeColor(const StyleColor& color) { | 1885 void SetTextStrokeColor(const StyleColor& color) { |
1886 SET_VAR(rare_inherited_data_, text_stroke_color_, color.Resolve(Color())); | 1886 SET_VAR(rare_inherited_data_, text_stroke_color_, color.Resolve(Color())); |
1887 SET_VAR(rare_inherited_data_, text_stroke_color_is_current_color_, | 1887 SET_VAR(rare_inherited_data_, text_stroke_color_is_current_color_, |
1888 color.IsCurrentColor()); | 1888 color.IsCurrentColor()); |
1889 } | 1889 } |
1890 | 1890 |
1891 // -webkit-text-stroke-width | |
1892 static float InitialTextStrokeWidth() { return 0; } | |
1893 float TextStrokeWidth() const { | |
1894 return rare_inherited_data_->text_stroke_width_; | |
1895 } | |
1896 void SetTextStrokeWidth(float w) { | |
1897 SET_VAR(rare_inherited_data_, text_stroke_width_, w); | |
1898 } | |
1899 | |
1900 // -webkit-user-drag | 1891 // -webkit-user-drag |
1901 static EUserDrag InitialUserDrag() { return DRAG_AUTO; } | 1892 static EUserDrag InitialUserDrag() { return DRAG_AUTO; } |
1902 EUserDrag UserDrag() const { | 1893 EUserDrag UserDrag() const { |
1903 return static_cast<EUserDrag>(rare_non_inherited_data_->user_drag); | 1894 return static_cast<EUserDrag>(rare_non_inherited_data_->user_drag); |
1904 } | 1895 } |
1905 void SetUserDrag(EUserDrag d) { | 1896 void SetUserDrag(EUserDrag d) { |
1906 SET_VAR(rare_non_inherited_data_, user_drag, d); | 1897 SET_VAR(rare_non_inherited_data_, user_drag, d); |
1907 } | 1898 } |
1908 | 1899 |
1909 // -webkit-user-modify | 1900 // -webkit-user-modify |
(...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3779 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3770 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3780 } | 3771 } |
3781 | 3772 |
3782 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3773 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3783 return PseudoBitsInternal() & kElementPseudoIdMask; | 3774 return PseudoBitsInternal() & kElementPseudoIdMask; |
3784 } | 3775 } |
3785 | 3776 |
3786 } // namespace blink | 3777 } // namespace blink |
3787 | 3778 |
3788 #endif // ComputedStyle_h | 3779 #endif // ComputedStyle_h |
OLD | NEW |