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

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

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months 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
Index: Source/core/animation/LengthStyleInterpolation.cpp
diff --git a/Source/core/animation/LengthStyleInterpolation.cpp b/Source/core/animation/LengthStyleInterpolation.cpp
index d787920217ef9d839ce155f08b13e25067dfd03e..fd2b1e49f3d86691d4ab408e1c3cef8fb27ef50d 100644
--- a/Source/core/animation/LengthStyleInterpolation.cpp
+++ b/Source/core/animation/LengthStyleInterpolation.cpp
@@ -226,17 +226,17 @@ static CSSPrimitiveValue::UnitType toUnitType(int lengthUnitType)
return static_cast<CSSPrimitiveValue::UnitType>(CSSPrimitiveValue::lengthUnitTypeToUnitType(static_cast<CSSPrimitiveValue::LengthUnitType>(lengthUnitType)));
}
-static PassRefPtrWillBeRawPtr<CSSCalcExpressionNode> constructCalcExpression(const InterpolableList* list)
+static PassRefPtr<CSSCalcExpressionNode> constructCalcExpression(const InterpolableList* list)
{
const InterpolableList* listOfValues = toInterpolableList(list->get(0));
const InterpolableList* listOfTypes = toInterpolableList(list->get(1));
- RefPtrWillBeRawPtr<CSSCalcExpressionNode> expression = nullptr;
+ RefPtr<CSSCalcExpressionNode> expression = nullptr;
for (size_t position = 0; position < CSSPrimitiveValue::LengthUnitTypeCount; position++) {
const InterpolableNumber *subValueType = toInterpolableNumber(listOfTypes->get(position));
if (!subValueType->value())
continue;
double value = toInterpolableNumber(listOfValues->get(position))->value();
- RefPtrWillBeRawPtr<CSSCalcExpressionNode> currentTerm = CSSCalcValue::createExpressionNode(CSSPrimitiveValue::create(value, toUnitType(position)));
+ RefPtr<CSSCalcExpressionNode> currentTerm = CSSCalcValue::createExpressionNode(CSSPrimitiveValue::create(value, toUnitType(position)));
if (expression)
expression = CSSCalcValue::createExpressionNode(expression.release(), currentTerm.release(), CalcAdd);
else
@@ -276,7 +276,7 @@ static Length lengthFromInterpolableValue(const InterpolableValue& value, Interp
}
-PassRefPtrWillBeRawPtr<CSSPrimitiveValue> LengthStyleInterpolation::fromInterpolableValue(const InterpolableValue& value, InterpolationRange range)
+PassRefPtr<CSSPrimitiveValue> LengthStyleInterpolation::fromInterpolableValue(const InterpolableValue& value, InterpolationRange range)
{
const InterpolableList* listOfValuesAndTypes = toInterpolableList(&value);
const InterpolableList* listOfValues = toInterpolableList(listOfValuesAndTypes->get(0));
« no previous file with comments | « Source/core/animation/LengthStyleInterpolation.h ('k') | Source/core/animation/LengthStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698