OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSVariableResolver_h | 5 #ifndef CSSVariableResolver_h |
6 #define CSSVariableResolver_h | 6 #define CSSVariableResolver_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "core/css/parser/CSSParserToken.h" | 9 #include "core/css/parser/CSSParserToken.h" |
10 #include "wtf/HashSet.h" | 10 #include "wtf/HashSet.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Shorthand properties are not supported. | 31 // Shorthand properties are not supported. |
32 static const CSSValue* resolveVariableReferences( | 32 static const CSSValue* resolveVariableReferences( |
33 const StyleResolverState&, | 33 const StyleResolverState&, |
34 CSSPropertyID, | 34 CSSPropertyID, |
35 const CSSValue&, | 35 const CSSValue&, |
36 bool disallowAnimationTainted); | 36 bool disallowAnimationTainted); |
37 | 37 |
38 static void computeRegisteredVariables(const StyleResolverState&); | 38 static void computeRegisteredVariables(const StyleResolverState&); |
39 | 39 |
40 DECLARE_TRACE(); | |
41 | |
42 private: | 40 private: |
43 CSSVariableResolver(const StyleResolverState&); | 41 CSSVariableResolver(const StyleResolverState&); |
44 | 42 |
45 static const CSSValue* resolvePendingSubstitutions( | 43 static const CSSValue* resolvePendingSubstitutions( |
46 const StyleResolverState&, | 44 const StyleResolverState&, |
47 CSSPropertyID, | 45 CSSPropertyID, |
48 const CSSPendingSubstitutionValue&, | 46 const CSSPendingSubstitutionValue&, |
49 bool disallowAnimationTainted); | 47 bool disallowAnimationTainted); |
50 static const CSSValue* resolveVariableReferences( | 48 static const CSSValue* resolveVariableReferences( |
51 const StyleResolverState&, | 49 const StyleResolverState&, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 HashSet<AtomicString> m_variablesSeen; | 88 HashSet<AtomicString> m_variablesSeen; |
91 // Resolution doesn't finish when a cycle is detected. Fallbacks still | 89 // Resolution doesn't finish when a cycle is detected. Fallbacks still |
92 // need to be tracked for additional cycles, and invalidation only | 90 // need to be tracked for additional cycles, and invalidation only |
93 // applies back to cycle starts. | 91 // applies back to cycle starts. |
94 HashSet<AtomicString> m_cycleStartPoints; | 92 HashSet<AtomicString> m_cycleStartPoints; |
95 }; | 93 }; |
96 | 94 |
97 } // namespace blink | 95 } // namespace blink |
98 | 96 |
99 #endif // CSSVariableResolver | 97 #endif // CSSVariableResolver |
OLD | NEW |