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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/SVGStrokeDasharrayStyleInterpolation.cpp
diff --git a/Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp b/Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp
index ffb4822c9f0c4f9d61343d26f8463ef58039106b..844fd68d5a269b7a150f6c7a099dce4519cf0fb7 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)
+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);
+ InterpolableList* interpolableStart = InterpolableList::create(size);
+ 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 new SVGStrokeDasharrayStyleInterpolation(interpolableStart, interpolableEnd, id);
}
void SVGStrokeDasharrayStyleInterpolation::apply(StyleResolverState& state) const

Powered by Google App Engine
This is Rietveld 408576698