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

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

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: Resize expect size of Persistent Created 5 years, 7 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.h
diff --git a/Source/core/animation/LengthStyleInterpolation.h b/Source/core/animation/LengthStyleInterpolation.h
index fd7302e587cf12f2963435754b6bfc010dff968d..37cfea0dd2c59e3e1e27067411f098970888680f 100644
--- a/Source/core/animation/LengthStyleInterpolation.h
+++ b/Source/core/animation/LengthStyleInterpolation.h
@@ -19,9 +19,9 @@ public:
typedef void (ComputedStyle::*LengthSetter)(const Length&);
typedef void NonInterpolableType;
- static PassRefPtrWillBeRawPtr<LengthStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, InterpolationRange range)
+ static LengthStyleInterpolation* create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, InterpolationRange range)
{
- return adoptRefWillBeNoop(new LengthStyleInterpolation(toInterpolableValue(start, id), toInterpolableValue(end, id), id, range));
+ return new LengthStyleInterpolation(toInterpolableValue(start, id), toInterpolableValue(end, id), id, range);
}
static bool canCreateFrom(const CSSValue&, CSSPropertyID = CSSPropertyInvalid);
@@ -30,11 +30,11 @@ public:
DECLARE_VIRTUAL_TRACE();
- static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(const CSSValue&, CSSPropertyID = CSSPropertyInvalid);
+ static InterpolableValue* toInterpolableValue(const CSSValue&, CSSPropertyID = CSSPropertyInvalid);
static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> fromInterpolableValue(const InterpolableValue&, InterpolationRange);
private:
- LengthStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id, InterpolationRange range)
+ LengthStyleInterpolation(InterpolableValue* start, InterpolableValue* end, CSSPropertyID id, InterpolationRange range)
: StyleInterpolation(start, end, id)
, m_range(range)
, m_lengthSetter(nullptr)

Powered by Google App Engine
This is Rietveld 408576698