| Index: Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/LengthBoxStyleInterpolation.cpp b/Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| index 84089324dc6425d44862ae56bd897b1ed6d3fa76..b2fa376a35c419cc4adc941ae843eca0853c0236 100644
|
| --- a/Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| +++ b/Source/core/animation/LengthBoxStyleInterpolation.cpp
|
| @@ -24,7 +24,7 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> LengthBoxStyleInterpolation::lengthBox
|
| Rect* rect = toCSSPrimitiveValue(lengthBox).getRectValue();
|
| CSSPrimitiveValue* side[numberOfSides] = { rect->left(), rect->right(), rect->top(), rect->bottom() };
|
|
|
| - for (size_t i = 0; i < numberOfSides; i ++) {
|
| + for (size_t i = 0; i < numberOfSides; i++) {
|
| result->set(i, LengthStyleInterpolation::lengthToInterpolableValue(*side[i]));
|
| }
|
| return result.release();
|
| @@ -32,13 +32,13 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> LengthBoxStyleInterpolation::lengthBox
|
|
|
| static inline PassRefPtrWillBeRawPtr<CSSPrimitiveValue> toPrimitiveValue(PassRefPtrWillBeRawPtr<CSSValue> value)
|
| {
|
| - return adoptRef(toCSSPrimitiveValue(value.leakRef()));
|
| + return adoptRefWillBeNoop(toCSSPrimitiveValue(value.leakRef()));
|
| }
|
|
|
| PassRefPtrWillBeRawPtr<CSSValue> LengthBoxStyleInterpolation::interpolableValueToLengthBox(InterpolableValue* value)
|
| {
|
| InterpolableList* lengthBox = toInterpolableList(value);
|
| - RefPtr<Rect> result = Rect::create();
|
| + RefPtrWillBeRawPtr<Rect> result = Rect::create();
|
|
|
| result->setLeft(toPrimitiveValue(LengthStyleInterpolation::interpolableValueToLength(lengthBox->get(0), ValueRangeNonNegative)));
|
| result->setRight(toPrimitiveValue(LengthStyleInterpolation::interpolableValueToLength(lengthBox->get(1), ValueRangeNonNegative)));
|
| @@ -59,5 +59,3 @@ void LengthBoxStyleInterpolation::trace(Visitor* visitor)
|
| }
|
|
|
| }
|
| -
|
| -
|
|
|