| Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| index b160cb46c5c1eb22c09a7a501c3a0b600073e33f..2357ad74eb163a9073b0a2a55d3c5e32ed02e8c0 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1559,12 +1559,10 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
|
| }
|
|
|
| // TODO(leviw): We need the proper bit for tracking whether we need to do this work.
|
| - if (RuntimeEnabledFeatures::cssVariablesEnabled()) {
|
| - applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), false, applyInheritedOnly);
|
| - applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), true, applyInheritedOnly);
|
| - // TODO(leviw): stop recalculating every time
|
| - CSSVariableResolver::resolveVariableDefinitions(state.style()->variables());
|
| - }
|
| + applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), false, applyInheritedOnly);
|
| + applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), true, applyInheritedOnly);
|
| + // TODO(leviw): stop recalculating every time
|
| + CSSVariableResolver::resolveVariableDefinitions(state.style()->variables());
|
|
|
| if (RuntimeEnabledFeatures::cssApplyAtRulesEnabled()) {
|
| if (cacheCustomPropertiesForApplyAtRules(state, matchResult.authorRules())) {
|
|
|