| Index: Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/LengthBoxStyleInterpolation.cpp b/Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| index 53440c0aae4c8741b248d0a92d6d43adae1c025b..04709eb36ba9865569473c509b93a3ce2a0d4ef0 100644
|
| --- a/Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| +++ b/Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| @@ -21,20 +21,20 @@ bool onlyInterpolateBetweenLengthAndCSSValueAuto(Rect& startRect, Rect& endRect)
|
|
|
| } // namespace
|
|
|
| -PassRefPtrWillBeRawPtr<LengthBoxStyleInterpolation> LengthBoxStyleInterpolation::maybeCreateFrom(CSSValue& start, CSSValue& end, CSSPropertyID id)
|
| +LengthBoxStyleInterpolation* LengthBoxStyleInterpolation::maybeCreateFrom(CSSValue& start, CSSValue& end, CSSPropertyID id)
|
| {
|
| bool startRect = start.isPrimitiveValue() && toCSSPrimitiveValue(start).isRect();
|
| bool endRect = end.isPrimitiveValue() && toCSSPrimitiveValue(end).isRect();
|
|
|
| if (startRect && endRect)
|
| - return adoptRefWillBeNoop(new LengthBoxStyleInterpolation(lengthBoxtoInterpolableValue(start, end, false), lengthBoxtoInterpolableValue(end, start, true), id, &start, &end));
|
| + return new LengthBoxStyleInterpolation(lengthBoxtoInterpolableValue(start, end, false), lengthBoxtoInterpolableValue(end, start, true), id, &start, &end);
|
| return nullptr;
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<InterpolableValue> LengthBoxStyleInterpolation::lengthBoxtoInterpolableValue(const CSSValue& lengthBox, const CSSValue& matchingValue, bool isEndInterpolation)
|
| +InterpolableValue* LengthBoxStyleInterpolation::lengthBoxtoInterpolableValue(const CSSValue& lengthBox, const CSSValue& matchingValue, bool isEndInterpolation)
|
| {
|
| const int numberOfSides = 4;
|
| - OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(numberOfSides);
|
| + InterpolableList* result = InterpolableList::create(numberOfSides);
|
| Rect* rect = toCSSPrimitiveValue(lengthBox).getRectValue();
|
| Rect* matchingRect = toCSSPrimitiveValue(matchingValue).getRectValue();
|
| CSSPrimitiveValue* side[numberOfSides] = { rect->left(), rect->right(), rect->top(), rect->bottom() };
|
| @@ -48,7 +48,7 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> LengthBoxStyleInterpolation::lengthBox
|
| result->set(i, LengthStyleInterpolation::toInterpolableValue(*side[i]));
|
| }
|
| }
|
| - return result.release();
|
| + return result;
|
| }
|
|
|
| bool LengthBoxStyleInterpolation::usesDefaultInterpolation(const CSSValue& start, const CSSValue& end)
|
|
|