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 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 void setResolvedInheritedVariable(const AtomicString&, | 2697 void setResolvedInheritedVariable(const AtomicString&, |
2698 PassRefPtr<CSSVariableData>, | 2698 PassRefPtr<CSSVariableData>, |
2699 const CSSValue*); | 2699 const CSSValue*); |
2700 void setResolvedNonInheritedVariable(const AtomicString&, | 2700 void setResolvedNonInheritedVariable(const AtomicString&, |
2701 PassRefPtr<CSSVariableData>, | 2701 PassRefPtr<CSSVariableData>, |
2702 const CSSValue*); | 2702 const CSSValue*); |
2703 | 2703 |
2704 void removeInheritedVariable(const AtomicString&); | 2704 void removeInheritedVariable(const AtomicString&); |
2705 void removeNonInheritedVariable(const AtomicString&); | 2705 void removeNonInheritedVariable(const AtomicString&); |
2706 | 2706 |
| 2707 // Handles both inherited and non-inherited variables |
| 2708 CSSVariableData* getVariable(const AtomicString&) const; |
| 2709 |
2707 void setHasVariableReferenceFromNonInheritedProperty() { | 2710 void setHasVariableReferenceFromNonInheritedProperty() { |
2708 m_nonInheritedData.m_variableReference = true; | 2711 m_nonInheritedData.m_variableReference = true; |
2709 } | 2712 } |
2710 bool hasVariableReferenceFromNonInheritedProperty() const { | 2713 bool hasVariableReferenceFromNonInheritedProperty() const { |
2711 return m_nonInheritedData.m_variableReference; | 2714 return m_nonInheritedData.m_variableReference; |
2712 } | 2715 } |
2713 | 2716 |
2714 // Animations. | 2717 // Animations. |
2715 CSSAnimationData& accessAnimations(); | 2718 CSSAnimationData& accessAnimations(); |
2716 const CSSAnimationData* animations() const { | 2719 const CSSAnimationData* animations() const { |
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4110 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 4113 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
4111 } | 4114 } |
4112 | 4115 |
4113 inline bool ComputedStyle::hasPseudoElementStyle() const { | 4116 inline bool ComputedStyle::hasPseudoElementStyle() const { |
4114 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 4117 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
4115 } | 4118 } |
4116 | 4119 |
4117 } // namespace blink | 4120 } // namespace blink |
4118 | 4121 |
4119 #endif // ComputedStyle_h | 4122 #endif // ComputedStyle_h |
OLD | NEW |