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 #include "core/css/resolver/CSSVariableResolver.h" | 5 #include "core/css/resolver/CSSVariableResolver.h" |
6 | 6 |
7 #include "core/CSSPropertyNames.h" | 7 #include "core/CSSPropertyNames.h" |
8 #include "core/CSSValueKeywords.h" | 8 #include "core/CSSValueKeywords.h" |
9 #include "core/StyleBuilderFunctions.h" | 9 #include "core/StyleBuilderFunctions.h" |
10 #include "core/StylePropertyShorthand.h" | 10 #include "core/StylePropertyShorthand.h" |
11 #include "core/css/CSSValuePool.h" | 11 #include "core/css/CSSValuePool.h" |
12 #include "core/css/CSSVariableData.h" | 12 #include "core/css/CSSVariableData.h" |
13 #include "core/css/CSSVariableReferenceValue.h" | 13 #include "core/css/CSSVariableReferenceValue.h" |
14 #include "core/css/parser/CSSParserToken.h" | 14 #include "core/css/parser/CSSParserToken.h" |
15 #include "core/css/parser/CSSParserTokenRange.h" | 15 #include "core/css/parser/CSSParserTokenRange.h" |
16 #include "core/css/parser/CSSParserValues.h" | |
17 #include "core/css/parser/CSSPropertyParser.h" | 16 #include "core/css/parser/CSSPropertyParser.h" |
18 #include "core/css/resolver/StyleBuilder.h" | 17 #include "core/css/resolver/StyleBuilder.h" |
19 #include "core/css/resolver/StyleResolverState.h" | 18 #include "core/css/resolver/StyleResolverState.h" |
20 #include "core/style/StyleVariableData.h" | 19 #include "core/style/StyleVariableData.h" |
21 #include "wtf/Vector.h" | 20 #include "wtf/Vector.h" |
22 | 21 |
23 namespace blink { | 22 namespace blink { |
24 | 23 |
25 bool CSSVariableResolver::resolveFallback(CSSParserTokenRange range, Vector<CSSP
arserToken>& result) | 24 bool CSSVariableResolver::resolveFallback(CSSParserTokenRange range, Vector<CSSP
arserToken>& result) |
26 { | 25 { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 variable.value = resolver.resolveCustomProperty(variable.key, *varia
ble.value); | 184 variable.value = resolver.resolveCustomProperty(variable.key, *varia
ble.value); |
186 } | 185 } |
187 } | 186 } |
188 | 187 |
189 CSSVariableResolver::CSSVariableResolver(StyleVariableData* styleVariableData) | 188 CSSVariableResolver::CSSVariableResolver(StyleVariableData* styleVariableData) |
190 : m_styleVariableData(styleVariableData) | 189 : m_styleVariableData(styleVariableData) |
191 { | 190 { |
192 } | 191 } |
193 | 192 |
194 } // namespace blink | 193 } // namespace blink |
OLD | NEW |