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

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: 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/LengthPairStyleInterpolation.h
diff --git a/Source/core/animation/LengthPairStyleInterpolation.h b/Source/core/animation/LengthPairStyleInterpolation.h
index 7f20355f69a73234643d2814c34708d0954af669..d9d7d762e56ee373bf590c8e8c4605c0fd072be3 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:
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;
« no previous file with comments | « Source/core/animation/LengthInterpolationType.cpp ('k') | Source/core/animation/LengthPairStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698