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

Unified Diff: Source/core/animation/LengthPairStyleInterpolation.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/LengthPairStyleInterpolation.h
diff --git a/Source/core/animation/LengthPairStyleInterpolation.h b/Source/core/animation/LengthPairStyleInterpolation.h
index 623c333b1605b1cf0039677e391c96003c271501..31d9a3016803245d04835b7829656485b71a74cb 100644
--- a/Source/core/animation/LengthPairStyleInterpolation.h
+++ b/Source/core/animation/LengthPairStyleInterpolation.h
@@ -13,9 +13,9 @@ namespace blink {
class CORE_EXPORT LengthPairStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<LengthPairStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, InterpolationRange range)
+ static LengthPairStyleInterpolation* create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, InterpolationRange range)
{
- return adoptRefWillBeNoop(new LengthPairStyleInterpolation(lengthPairToInterpolableValue(start), lengthPairToInterpolableValue(end), id, range));
+ return new LengthPairStyleInterpolation(lengthPairToInterpolableValue(start), lengthPairToInterpolableValue(end), id, range);
}
static bool canCreateFrom(const CSSValue&);
@@ -23,12 +23,12 @@ public:
virtual void apply(StyleResolverState&) const override;
private:
- LengthPairStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id, InterpolationRange range)
+ LengthPairStyleInterpolation(InterpolableValue* start, InterpolableValue* end, CSSPropertyID id, InterpolationRange range)
: StyleInterpolation(start, end, id), m_range(range)
{
}
- static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthPairToInterpolableValue(const CSSValue&);
+ static InterpolableValue* lengthPairToInterpolableValue(const CSSValue&);
static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLengthPair(InterpolableValue*, InterpolationRange);
InterpolationRange m_range;

Powered by Google App Engine
This is Rietveld 408576698