| 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/CSSPendingSubstitutionValue.h" | 11 #include "core/css/CSSPendingSubstitutionValue.h" |
| 12 #include "core/css/CSSUnsetValue.h" | 12 #include "core/css/CSSUnsetValue.h" |
| 13 #include "core/css/CSSVariableData.h" | 13 #include "core/css/CSSVariableData.h" |
| 14 #include "core/css/CSSVariableReferenceValue.h" | 14 #include "core/css/CSSVariableReferenceValue.h" |
| 15 #include "core/css/PropertyRegistry.h" | 15 #include "core/css/PropertyRegistry.h" |
| 16 #include "core/css/parser/CSSParserToken.h" | 16 #include "core/css/parser/CSSParserToken.h" |
| 17 #include "core/css/parser/CSSParserTokenRange.h" | 17 #include "core/css/parser/CSSParserTokenRange.h" |
| 18 #include "core/css/parser/CSSPropertyParser.h" | 18 #include "core/css/parser/CSSPropertyParser.h" |
| 19 #include "core/css/resolver/StyleBuilder.h" | 19 #include "core/css/resolver/StyleBuilder.h" |
| 20 #include "core/css/resolver/StyleBuilderConverter.h" | 20 #include "core/css/resolver/StyleBuilderConverter.h" |
| 21 #include "core/css/resolver/StyleResolverState.h" | 21 #include "core/css/resolver/StyleResolverState.h" |
| 22 #include "core/css/resolver/StyleResolverStats.h" | 22 #include "core/css/resolver/StyleResolverStats.h" |
| 23 #include "core/dom/StyleEngine.h" | 23 #include "core/dom/StyleEngine.h" |
| 24 #include "core/style/StyleInheritedVariables.h" | 24 #include "core/style/StyleInheritedVariables.h" |
| 25 #include "core/style/StyleNonInheritedVariables.h" | 25 #include "core/style/StyleNonInheritedVariables.h" |
| 26 #include "wtf/Vector.h" | 26 #include "platform/wtf/Vector.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 bool CSSVariableResolver::ResolveFallback(CSSParserTokenRange range, | 30 bool CSSVariableResolver::ResolveFallback(CSSParserTokenRange range, |
| 31 bool disallow_animation_tainted, | 31 bool disallow_animation_tainted, |
| 32 Vector<CSSParserToken>& result, | 32 Vector<CSSParserToken>& result, |
| 33 bool& result_is_animation_tainted) { | 33 bool& result_is_animation_tainted) { |
| 34 if (range.AtEnd()) | 34 if (range.AtEnd()) |
| 35 return false; | 35 return false; |
| 36 DCHECK_EQ(range.Peek().GetType(), kCommaToken); | 36 DCHECK_EQ(range.Peek().GetType(), kCommaToken); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 } | 334 } |
| 335 } | 335 } |
| 336 } | 336 } |
| 337 | 337 |
| 338 CSSVariableResolver::CSSVariableResolver(const StyleResolverState& state) | 338 CSSVariableResolver::CSSVariableResolver(const StyleResolverState& state) |
| 339 : inherited_variables_(state.Style()->InheritedVariables()), | 339 : inherited_variables_(state.Style()->InheritedVariables()), |
| 340 non_inherited_variables_(state.Style()->NonInheritedVariables()), | 340 non_inherited_variables_(state.Style()->NonInheritedVariables()), |
| 341 registry_(state.GetDocument().GetPropertyRegistry()) {} | 341 registry_(state.GetDocument().GetPropertyRegistry()) {} |
| 342 | 342 |
| 343 } // namespace blink | 343 } // namespace blink |
| OLD | NEW |