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

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

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/SVGStrokeDasharrayStyleInterpolation.cpp
diff --git a/Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp b/Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp
index ffb4822c9f0c4f9d61343d26f8463ef58039106b..8f0670c7f264cc2b3b12cdcf681474c8c4d0c211 100644
--- a/Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp
+++ b/Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp
@@ -48,7 +48,7 @@ bool SVGStrokeDasharrayStyleInterpolation::canCreateFrom(const CSSValue& value)
return true;
}
-PassRefPtrWillBeRawPtr<SVGStrokeDasharrayStyleInterpolation> SVGStrokeDasharrayStyleInterpolation::maybeCreate(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
+PassRefPtr<SVGStrokeDasharrayStyleInterpolation> SVGStrokeDasharrayStyleInterpolation::maybeCreate(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
{
if (!canCreateFrom(start) || !canCreateFrom(end))
return nullptr;
@@ -61,8 +61,8 @@ PassRefPtrWillBeRawPtr<SVGStrokeDasharrayStyleInterpolation> SVGStrokeDasharrayS
size_t size = lowestCommonMultiple(valueListStart.length(), valueListEnd.length());
ASSERT(size > 0);
- OwnPtrWillBeRawPtr<InterpolableList> interpolableStart = InterpolableList::create(size);
- OwnPtrWillBeRawPtr<InterpolableList> interpolableEnd = InterpolableList::create(size);
+ OwnPtr<InterpolableList> interpolableStart = InterpolableList::create(size);
+ OwnPtr<InterpolableList> interpolableEnd = InterpolableList::create(size);
for (size_t i = 0; i < size; ++i) {
const CSSPrimitiveValue& from = *toCSSPrimitiveValue(valueListStart.item(i % valueListStart.length()));
@@ -71,7 +71,7 @@ PassRefPtrWillBeRawPtr<SVGStrokeDasharrayStyleInterpolation> SVGStrokeDasharrayS
interpolableStart->set(i, LengthStyleInterpolation::toInterpolableValue(from));
interpolableEnd->set(i, LengthStyleInterpolation::toInterpolableValue(to));
}
- return adoptRefWillBeNoop(new SVGStrokeDasharrayStyleInterpolation(interpolableStart.release(), interpolableEnd.release(), id));
+ return adoptRef(new SVGStrokeDasharrayStyleInterpolation(interpolableStart.release(), interpolableEnd.release(), id));
}
void SVGStrokeDasharrayStyleInterpolation::apply(StyleResolverState& state) const

Powered by Google App Engine
This is Rietveld 408576698