| Index: third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
|
| index 3a3ea9defe1c76df91a29ff5f20801e9a50c05fa..a0d75c1d859ff367a654e7f7db6fccaadcb8f34c 100644
|
| --- a/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
|
| @@ -262,25 +262,24 @@ void CSSClipInterpolationType::composite(
|
| underlyingValueOwner.set(*this, value);
|
| }
|
|
|
| -void CSSClipInterpolationType::apply(
|
| +void CSSClipInterpolationType::applyStandardPropertyValue(
|
| const InterpolableValue& interpolableValue,
|
| const NonInterpolableValue* nonInterpolableValue,
|
| - InterpolationEnvironment& environment) const {
|
| + StyleResolverState& state) const {
|
| const ClipAutos& autos =
|
| toCSSClipNonInterpolableValue(nonInterpolableValue)->clipAutos();
|
| const InterpolableList& list = toInterpolableList(interpolableValue);
|
| - const auto& convertIndex = [&list, &environment](bool isAuto, size_t index) {
|
| + const auto& convertIndex = [&list, &state](bool isAuto, size_t index) {
|
| if (isAuto)
|
| return Length(Auto);
|
| return LengthInterpolationFunctions::createLength(
|
| - *list.get(index), nullptr,
|
| - environment.state().cssToLengthConversionData(), ValueRangeAll);
|
| + *list.get(index), nullptr, state.cssToLengthConversionData(),
|
| + ValueRangeAll);
|
| };
|
| - environment.state().style()->setClip(
|
| - LengthBox(convertIndex(autos.isTopAuto, ClipTop),
|
| - convertIndex(autos.isRightAuto, ClipRight),
|
| - convertIndex(autos.isBottomAuto, ClipBottom),
|
| - convertIndex(autos.isLeftAuto, ClipLeft)));
|
| + state.style()->setClip(LengthBox(convertIndex(autos.isTopAuto, ClipTop),
|
| + convertIndex(autos.isRightAuto, ClipRight),
|
| + convertIndex(autos.isBottomAuto, ClipBottom),
|
| + convertIndex(autos.isLeftAuto, ClipLeft)));
|
| }
|
|
|
| } // namespace blink
|
|
|