Index: third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp |
index 63b4938304a8ab7e4d726eddabd24cb71774a71f..b2effd04832bee776a3cd3c883598907a0e09422 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp |
@@ -85,14 +85,14 @@ InterpolationValue CSSPaintInterpolationType::maybeConvertUnderlyingValue(const |
{ |
// TODO(alancutter): Support capturing and animating with the visited paint color. |
StyleColor underlyingColor; |
- if (!PaintPropertyFunctions::getColor(cssProperty(), *environment.state().style(), underlyingColor)) |
+ if (!PaintPropertyFunctions::getColor(cssProperty(), environment.style(), underlyingColor)) |
return nullptr; |
return InterpolationValue(CSSColorInterpolationType::createInterpolableColor(underlyingColor)); |
} |
void CSSPaintInterpolationType::apply(const InterpolableValue& interpolableColor, const NonInterpolableValue*, InterpolationEnvironment& environment) const |
{ |
- PaintPropertyFunctions::setColor(cssProperty(), *environment.state().style(), CSSColorInterpolationType::resolveInterpolableColor(interpolableColor, environment.state())); |
+ PaintPropertyFunctions::setColor(cssProperty(), environment.style(), CSSColorInterpolationType::resolveInterpolableColor(interpolableColor, environment.state())); |
} |
} // namespace blink |