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

Unified Diff: Source/core/animation/NumberOptionalNumberSVGInterpolation.h

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/NumberOptionalNumberSVGInterpolation.h
diff --git a/Source/core/animation/NumberOptionalNumberSVGInterpolation.h b/Source/core/animation/NumberOptionalNumberSVGInterpolation.h
index 37d72cdd246a5502ab4a4f6130b95b1415fdeade..18b26c6af5c451883d9388340806b21ee1373637 100644
--- a/Source/core/animation/NumberOptionalNumberSVGInterpolation.h
+++ b/Source/core/animation/NumberOptionalNumberSVGInterpolation.h
@@ -15,9 +15,9 @@ class SVGNumberOptionalNumber;
class NumberOptionalNumberSVGInterpolation : public SVGInterpolation {
public:
- static PassRefPtrWillBeRawPtr<NumberOptionalNumberSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
+ static PassRefPtr<NumberOptionalNumberSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
{
- return adoptRefWillBeNoop(new NumberOptionalNumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute));
+ return adoptRef(new NumberOptionalNumberSVGInterpolation(toInterpolableValue(start), toInterpolableValue(end), attribute));
}
PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final
@@ -25,21 +25,16 @@ public:
return fromInterpolableValue(*m_cachedValue);
}
- DEFINE_INLINE_VIRTUAL_TRACE()
- {
- SVGInterpolation::trace(visitor);
- }
-
private:
- NumberOptionalNumberSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
+ NumberOptionalNumberSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
: SVGInterpolation(start, end, attribute)
{
}
- static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase* value)
+ static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase* value)
{
RefPtrWillBeRawPtr<SVGNumberOptionalNumber> numberOptionalNumber = toSVGNumberOptionalNumber(value);
- OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(2);
+ OwnPtr<InterpolableList> result = InterpolableList::create(2);
result->set(0, InterpolableNumber::create(numberOptionalNumber->firstNumber()->value()));
result->set(1, InterpolableNumber::create(numberOptionalNumber->secondNumber()->value()));
return result.release();

Powered by Google App Engine
This is Rietveld 408576698