| 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 05de7ec4f05d26612c57f0684b79c626b21a15e1..3c2dbb90c5f908583efdb5e25bcc3ceee1c2be86 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1562,13 +1562,13 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
|
| 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());
|
| + CSSVariableResolver::resolveVariableDefinitions(state);
|
|
|
| if (RuntimeEnabledFeatures::cssApplyAtRulesEnabled()) {
|
| if (cacheCustomPropertiesForApplyAtRules(state, matchResult.authorRules())) {
|
| applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), false, applyInheritedOnly);
|
| applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), true, applyInheritedOnly);
|
| - CSSVariableResolver::resolveVariableDefinitions(state.style()->variables());
|
| + CSSVariableResolver::resolveVariableDefinitions(state);
|
| }
|
| }
|
|
|
|
|