Index: third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
index 8ff23f43e93edcb4384d077805b7db0a9e7dd758..b8625f90ae4879ea8641f958a5d815e2eba20bd9 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
@@ -180,7 +180,8 @@ PairwiseInterpolationValue CSSScaleInterpolationType::maybeMergeSingles(Interpol |
InterpolationValue CSSScaleInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const |
{ |
- return InterpolationValue(Scale(environment.state().style()->scale()).createInterpolableValue()); |
+ Scale scale = Scale(environment.style().scale()); |
+ return InterpolationValue(scale.createInterpolableValue(), CSSScaleNonInterpolableValue::create(scale, false)); |
} |
void CSSScaleInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const |
@@ -200,7 +201,7 @@ void CSSScaleInterpolationType::composite(UnderlyingValueOwner& underlyingValueO |
void CSSScaleInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue*, InterpolationEnvironment& environment) const |
{ |
Scale scale(interpolableValue); |
- environment.state().style()->setScale(ScaleTransformOperation::create(scale.array[0], scale.array[1], scale.array[2], TransformOperation::Scale3D)); |
+ environment.style().setScale(ScaleTransformOperation::create(scale.array[0], scale.array[1], scale.array[2], TransformOperation::Scale3D)); |
} |
} // namespace blink |