Index: third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp |
index 89fb940e39fec7252930e4cf59d79133e8d4dcad..fbef4bb8980de364f8c6bc60cde5b37287ea4ed2 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp |
@@ -32,7 +32,7 @@ private: |
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final |
{ |
// TODO(alancutter): Just check the variables referenced instead of doing a full CSSValue resolve. |
- const CSSValue* resolvedValue = CSSVariableResolver::resolveVariableReferences(environment.state().style()->variables(), m_property, *m_variableReference); |
+ const CSSValue* resolvedValue = CSSVariableResolver::resolveVariableReferences(environment.style().variables(), m_property, *m_variableReference); |
return m_resolvedValue->equals(*resolvedValue); |
} |
@@ -54,7 +54,7 @@ InterpolationValue CSSInterpolationType::maybeConvertSingle(const PropertySpecif |
return nullptr; |
if (value->isVariableReferenceValue() && !isShorthandProperty(cssProperty())) { |
- resolvedCSSValueOwner = CSSVariableResolver::resolveVariableReferences(environment.state().style()->variables(), cssProperty(), toCSSVariableReferenceValue(*value)); |
+ resolvedCSSValueOwner = CSSVariableResolver::resolveVariableReferences(environment.style().variables(), cssProperty(), toCSSVariableReferenceValue(*value)); |
conversionCheckers.append(ResolvedVariableChecker::create(cssProperty(), toCSSVariableReferenceValue(value), resolvedCSSValueOwner)); |
value = resolvedCSSValueOwner; |
} |