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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/core/animation/LengthStyleInterpolation.cpp
diff --git a/third_party/WebKit/Source/core/animation/LengthStyleInterpolation.cpp b/third_party/WebKit/Source/core/animation/LengthStyleInterpolation.cpp
index ccdcc8db23f9196706a1e5b78949be20f1338b84..6b1e9e57903eaf252c8bb8795b608c67f7b1c403 100644
--- a/third_party/WebKit/Source/core/animation/LengthStyleInterpolation.cpp
+++ b/third_party/WebKit/Source/core/animation/LengthStyleInterpolation.cpp
@@ -72,17 +72,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 RawPtr<CSSCalcExpressionNode> constructCalcExpression(const InterpolableList* list)
{
const InterpolableList* listOfValues = toInterpolableList(list->get(0));
const InterpolableList* listOfTypes = toInterpolableList(list->get(1));
- RefPtrWillBeRawPtr<CSSCalcExpressionNode> expression = nullptr;
+ RawPtr<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)));
+ RawPtr<CSSCalcExpressionNode> currentTerm = CSSCalcValue::createExpressionNode(CSSPrimitiveValue::create(value, toUnitType(position)));
if (expression)
expression = CSSCalcValue::createExpressionNode(expression.release(), currentTerm.release(), CalcAdd);
else
@@ -122,7 +122,7 @@ static Length lengthFromInterpolableValue(const InterpolableValue& value, Interp
} // namespace
-PassRefPtrWillBeRawPtr<CSSPrimitiveValue> LengthStyleInterpolation::fromInterpolableValue(const InterpolableValue& value, InterpolationRange range)
+RawPtr<CSSPrimitiveValue> LengthStyleInterpolation::fromInterpolableValue(const InterpolableValue& value, InterpolationRange range)
{
const InterpolableList* listOfValuesAndTypes = toInterpolableList(&value);
const InterpolableList* listOfValues = toInterpolableList(listOfValuesAndTypes->get(0));

Powered by Google App Engine
This is Rietveld 408576698