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

Unified Diff: Source/core/animation/DoubleStyleInterpolation.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: 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/DoubleStyleInterpolation.h
diff --git a/Source/core/animation/DoubleStyleInterpolation.h b/Source/core/animation/DoubleStyleInterpolation.h
index 88a659d765f2a826224201b8da2bcd375161e103..0d816c489cf08f9fbfa5475b84add32e9feb164c 100644
--- a/Source/core/animation/DoubleStyleInterpolation.h
+++ b/Source/core/animation/DoubleStyleInterpolation.h
@@ -15,12 +15,12 @@ class CORE_EXPORT DoubleStyleInterpolation : public StyleInterpolation {
public:
typedef void NonInterpolableType;
- static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, bool isNumber, InterpolationRange clamp)
+ static DoubleStyleInterpolation* create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, bool isNumber, InterpolationRange clamp)
{
- return adoptRefWillBeNoop(new DoubleStyleInterpolation(doubleToInterpolableValue(start), doubleToInterpolableValue(end), id, isNumber, clamp, false));
+ return new DoubleStyleInterpolation(doubleToInterpolableValue(start), doubleToInterpolableValue(end), id, isNumber, clamp, false);
}
- static PassRefPtrWillBeRawPtr<DoubleStyleInterpolation> maybeCreateFromMotionRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID);
+ static DoubleStyleInterpolation* maybeCreateFromMotionRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID);
static bool canCreateFrom(const CSSValue&);
@@ -28,19 +28,19 @@ public:
DECLARE_VIRTUAL_TRACE();
- static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(const CSSValue&, CSSPropertyID = CSSPropertyInvalid);
+ static InterpolableValue* toInterpolableValue(const CSSValue&, CSSPropertyID = CSSPropertyInvalid);
static PassRefPtrWillBeRawPtr<CSSValue> fromInterpolableValue(const InterpolableValue&, InterpolationRange);
private:
- DoubleStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id, bool isNumber, InterpolationRange clamp, bool flag)
+ DoubleStyleInterpolation(InterpolableValue* start, InterpolableValue* end, CSSPropertyID id, bool isNumber, InterpolationRange clamp, bool flag)
: StyleInterpolation(start, end, id)
, m_isNumber(isNumber)
, m_clamp(clamp)
, m_flag(flag)
{ }
- static PassOwnPtrWillBeRawPtr<InterpolableValue> doubleToInterpolableValue(const CSSValue&);
- static PassOwnPtrWillBeRawPtr<InterpolableValue> motionRotationToInterpolableValue(const CSSValue&);
+ static InterpolableValue* doubleToInterpolableValue(const CSSValue&);
+ static InterpolableValue* motionRotationToInterpolableValue(const CSSValue&);
static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToDouble(const InterpolableValue*, bool, InterpolationRange);
static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToMotionRotation(InterpolableValue*, bool);
« no previous file with comments | « Source/core/animation/DeferredLegacyStyleInterpolation.cpp ('k') | Source/core/animation/DoubleStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698