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 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2493 | 2493 |
2494 // -webkit-user-select | 2494 // -webkit-user-select |
2495 static EUserSelect initialUserSelect() { return SELECT_TEXT; } | 2495 static EUserSelect initialUserSelect() { return SELECT_TEXT; } |
2496 EUserSelect userSelect() const { | 2496 EUserSelect userSelect() const { |
2497 return static_cast<EUserSelect>(m_rareInheritedData->userSelect); | 2497 return static_cast<EUserSelect>(m_rareInheritedData->userSelect); |
2498 } | 2498 } |
2499 void setUserSelect(EUserSelect s) { | 2499 void setUserSelect(EUserSelect s) { |
2500 SET_VAR(m_rareInheritedData, userSelect, s); | 2500 SET_VAR(m_rareInheritedData, userSelect, s); |
2501 } | 2501 } |
2502 | 2502 |
2503 // caret-color | |
2504 void setCaretColor(const StyleAutoColor& c) { | |
Timothy Loh
2016/11/28 03:11:21
Is there somewhere in this file with lots of other
Manuel Rego
2016/11/28 10:47:55
I didn't find it, in this file they're quite mixed
| |
2505 SET_VAR_WITH_SETTER(m_rareInheritedData, caretColor, setCaretColor, c); | |
2506 } | |
2507 | |
2503 // Font properties. | 2508 // Font properties. |
2504 const Font& font() const; | 2509 const Font& font() const; |
2505 void setFont(const Font&); | 2510 void setFont(const Font&); |
2506 const FontDescription& getFontDescription() const; | 2511 const FontDescription& getFontDescription() const; |
2507 bool setFontDescription(const FontDescription&); | 2512 bool setFontDescription(const FontDescription&); |
2508 bool hasIdenticalAscentDescentAndLineGap(const ComputedStyle& other) const; | 2513 bool hasIdenticalAscentDescentAndLineGap(const ComputedStyle& other) const; |
2509 | 2514 |
2510 // font-size | 2515 // font-size |
2511 int fontSize() const; | 2516 int fontSize() const; |
2512 float specifiedFontSize() const; | 2517 float specifiedFontSize() const; |
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3875 setVisitedLinkTextEmphasisColor, v); | 3880 setVisitedLinkTextEmphasisColor, v); |
3876 } | 3881 } |
3877 void setVisitedLinkTextFillColor(const StyleColor& v) { | 3882 void setVisitedLinkTextFillColor(const StyleColor& v) { |
3878 SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkTextFillColor, | 3883 SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkTextFillColor, |
3879 setVisitedLinkTextFillColor, v); | 3884 setVisitedLinkTextFillColor, v); |
3880 } | 3885 } |
3881 void setVisitedLinkTextStrokeColor(const StyleColor& v) { | 3886 void setVisitedLinkTextStrokeColor(const StyleColor& v) { |
3882 SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkTextStrokeColor, | 3887 SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkTextStrokeColor, |
3883 setVisitedLinkTextStrokeColor, v); | 3888 setVisitedLinkTextStrokeColor, v); |
3884 } | 3889 } |
3890 void setVisitedLinkCaretColor(const StyleAutoColor& v) { | |
3891 SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkCaretColor, | |
3892 setVisitedLinkCaretColor, v); | |
3893 } | |
3885 | 3894 |
3886 void inheritUnicodeBidiFrom(const ComputedStyle& parent) { | 3895 void inheritUnicodeBidiFrom(const ComputedStyle& parent) { |
3887 m_nonInheritedData.m_unicodeBidi = parent.m_nonInheritedData.m_unicodeBidi; | 3896 m_nonInheritedData.m_unicodeBidi = parent.m_nonInheritedData.m_unicodeBidi; |
3888 } | 3897 } |
3889 | 3898 |
3890 static bool isDisplayFlexibleBox(EDisplay display) { | 3899 static bool isDisplayFlexibleBox(EDisplay display) { |
3891 return display == EDisplay::Flex || display == EDisplay::InlineFlex; | 3900 return display == EDisplay::Flex || display == EDisplay::InlineFlex; |
3892 } | 3901 } |
3893 | 3902 |
3894 static bool isDisplayGridBox(EDisplay display) { | 3903 static bool isDisplayGridBox(EDisplay display) { |
(...skipping 27 matching lines...) Expand all Loading... | |
3922 return m_surround->border.left().color(); | 3931 return m_surround->border.left().color(); |
3923 } | 3932 } |
3924 StyleColor borderRightColor() const { | 3933 StyleColor borderRightColor() const { |
3925 return m_surround->border.right().color(); | 3934 return m_surround->border.right().color(); |
3926 } | 3935 } |
3927 StyleColor borderTopColor() const { return m_surround->border.top().color(); } | 3936 StyleColor borderTopColor() const { return m_surround->border.top().color(); } |
3928 StyleColor borderBottomColor() const { | 3937 StyleColor borderBottomColor() const { |
3929 return m_surround->border.bottom().color(); | 3938 return m_surround->border.bottom().color(); |
3930 } | 3939 } |
3931 StyleColor backgroundColor() const { return m_background->color(); } | 3940 StyleColor backgroundColor() const { return m_background->color(); } |
3941 StyleAutoColor caretColor() const { | |
3942 return m_rareInheritedData->caretColor(); | |
3943 } | |
3932 Color color() const; | 3944 Color color() const; |
3933 StyleColor columnRuleColor() const { | 3945 StyleColor columnRuleColor() const { |
3934 return m_rareNonInheritedData->m_multiCol->m_rule.color(); | 3946 return m_rareNonInheritedData->m_multiCol->m_rule.color(); |
3935 } | 3947 } |
3936 StyleColor outlineColor() const { | 3948 StyleColor outlineColor() const { |
3937 return m_rareNonInheritedData->m_outline.color(); | 3949 return m_rareNonInheritedData->m_outline.color(); |
3938 } | 3950 } |
3939 StyleColor textEmphasisColor() const { | 3951 StyleColor textEmphasisColor() const { |
3940 return m_rareInheritedData->textEmphasisColor(); | 3952 return m_rareInheritedData->textEmphasisColor(); |
3941 } | 3953 } |
3942 StyleColor textFillColor() const { | 3954 StyleColor textFillColor() const { |
3943 return m_rareInheritedData->textFillColor(); | 3955 return m_rareInheritedData->textFillColor(); |
3944 } | 3956 } |
3945 StyleColor textStrokeColor() const { | 3957 StyleColor textStrokeColor() const { |
3946 return m_rareInheritedData->textStrokeColor(); | 3958 return m_rareInheritedData->textStrokeColor(); |
3947 } | 3959 } |
3960 StyleAutoColor visitedLinkCaretColor() const { | |
3961 return m_rareInheritedData->visitedLinkCaretColor(); | |
3962 } | |
3948 Color visitedLinkColor() const; | 3963 Color visitedLinkColor() const; |
3949 StyleColor visitedLinkBackgroundColor() const { | 3964 StyleColor visitedLinkBackgroundColor() const { |
3950 return m_rareNonInheritedData->m_visitedLinkBackgroundColor; | 3965 return m_rareNonInheritedData->m_visitedLinkBackgroundColor; |
3951 } | 3966 } |
3952 StyleColor visitedLinkBorderLeftColor() const { | 3967 StyleColor visitedLinkBorderLeftColor() const { |
3953 return m_rareNonInheritedData->m_visitedLinkBorderLeftColor; | 3968 return m_rareNonInheritedData->m_visitedLinkBorderLeftColor; |
3954 } | 3969 } |
3955 StyleColor visitedLinkBorderRightColor() const { | 3970 StyleColor visitedLinkBorderRightColor() const { |
3956 return m_rareNonInheritedData->m_visitedLinkBorderRightColor; | 3971 return m_rareNonInheritedData->m_visitedLinkBorderRightColor; |
3957 } | 3972 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4103 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 4118 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
4104 } | 4119 } |
4105 | 4120 |
4106 inline bool ComputedStyle::hasPseudoElementStyle() const { | 4121 inline bool ComputedStyle::hasPseudoElementStyle() const { |
4107 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 4122 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
4108 } | 4123 } |
4109 | 4124 |
4110 } // namespace blink | 4125 } // namespace blink |
4111 | 4126 |
4112 #endif // ComputedStyle_h | 4127 #endif // ComputedStyle_h |
OLD | NEW |