Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: Source/core/animation/LengthBoxStyleInterpolation.cpp

Issue 796303003: Oilpan: fix build after r186996. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/animation/LengthBoxStyleInterpolationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
}
}
-
-
« no previous file with comments | « no previous file | Source/core/animation/LengthBoxStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698