| 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 b848b0bb8947e3f095e1340eae002d5abf230d2d..0564ed4f5a021ce82658417f3c0c5b65565ad7db 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -1760,7 +1760,7 @@ void StyleResolver::ApplyCustomProperties(StyleResolverState& state,
|
| state.AnimationUpdate().ActiveInterpolationsForCustomTransitions());
|
| }
|
| // TODO(leviw): stop recalculating every time
|
| - CSSVariableResolver::ResolveVariableDefinitions(state);
|
| + CSSVariableResolver(state).ResolveVariableDefinitions();
|
|
|
| if (RuntimeEnabledFeatures::cssApplyAtRulesEnabled()) {
|
| if (CacheCustomPropertiesForApplyAtRules(state,
|
| @@ -1779,7 +1779,7 @@ void StyleResolver::ApplyCustomProperties(StyleResolverState& state,
|
| state,
|
| state.AnimationUpdate().ActiveInterpolationsForCustomTransitions());
|
| }
|
| - CSSVariableResolver::ResolveVariableDefinitions(state);
|
| + CSSVariableResolver(state).ResolveVariableDefinitions();
|
| }
|
| }
|
| }
|
| @@ -1887,7 +1887,7 @@ void StyleResolver::ApplyMatchedStandardProperties(
|
| apply_inherited_only = false;
|
|
|
| // Registered custom properties are computed after high priority properties.
|
| - CSSVariableResolver::ComputeRegisteredVariables(state);
|
| + CSSVariableResolver(state).ComputeRegisteredVariables();
|
|
|
| // Now do the normal priority UA properties.
|
| ApplyMatchedProperties<kLowPropertyPriority, kCheckNeedsApplyPass>(
|
|
|