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 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2497 | 2497 |
2498 void setResolvedUnregisteredVariable(const AtomicString&, | 2498 void setResolvedUnregisteredVariable(const AtomicString&, |
2499 PassRefPtr<CSSVariableData>); | 2499 PassRefPtr<CSSVariableData>); |
2500 void setResolvedInheritedVariable(const AtomicString&, | 2500 void setResolvedInheritedVariable(const AtomicString&, |
2501 PassRefPtr<CSSVariableData>, | 2501 PassRefPtr<CSSVariableData>, |
2502 const CSSValue*); | 2502 const CSSValue*); |
2503 void setResolvedNonInheritedVariable(const AtomicString&, | 2503 void setResolvedNonInheritedVariable(const AtomicString&, |
2504 PassRefPtr<CSSVariableData>, | 2504 PassRefPtr<CSSVariableData>, |
2505 const CSSValue*); | 2505 const CSSValue*); |
2506 | 2506 |
2507 void removeInheritedVariable(const AtomicString&); | 2507 void removeVariable(const AtomicString&, bool isInheritedProperty); |
2508 void removeNonInheritedVariable(const AtomicString&); | |
2509 | 2508 |
2510 // Handles both inherited and non-inherited variables | 2509 // Handles both inherited and non-inherited variables |
2511 CSSVariableData* getVariable(const AtomicString&) const; | 2510 CSSVariableData* getVariable(const AtomicString&) const; |
2512 | 2511 |
| 2512 CSSVariableData* getVariable(const AtomicString&, |
| 2513 bool isInheritedProperty) const; |
| 2514 |
| 2515 const CSSValue* getRegisteredVariable(const AtomicString&, |
| 2516 bool isInheritedProperty) const; |
| 2517 |
2513 void setHasVariableReferenceFromNonInheritedProperty() { | 2518 void setHasVariableReferenceFromNonInheritedProperty() { |
2514 m_nonInheritedData.m_variableReference = true; | 2519 m_nonInheritedData.m_variableReference = true; |
2515 } | 2520 } |
2516 bool hasVariableReferenceFromNonInheritedProperty() const { | 2521 bool hasVariableReferenceFromNonInheritedProperty() const { |
2517 return m_nonInheritedData.m_variableReference; | 2522 return m_nonInheritedData.m_variableReference; |
2518 } | 2523 } |
2519 | 2524 |
2520 // Animations. | 2525 // Animations. |
2521 CSSAnimationData& accessAnimations(); | 2526 CSSAnimationData& accessAnimations(); |
2522 const CSSAnimationData* animations() const { | 2527 const CSSAnimationData* animations() const { |
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3927 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 3932 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
3928 } | 3933 } |
3929 | 3934 |
3930 inline bool ComputedStyle::hasPseudoElementStyle() const { | 3935 inline bool ComputedStyle::hasPseudoElementStyle() const { |
3931 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 3936 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
3932 } | 3937 } |
3933 | 3938 |
3934 } // namespace blink | 3939 } // namespace blink |
3935 | 3940 |
3936 #endif // ComputedStyle_h | 3941 #endif // ComputedStyle_h |
OLD | NEW |