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

Unified Diff: Source/core/animation/LegacyStyleInterpolation.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/LegacyStyleInterpolation.h
diff --git a/Source/core/animation/LegacyStyleInterpolation.h b/Source/core/animation/LegacyStyleInterpolation.h
index 276c9e4d47379533f757dc209b8dda5613e3ad1a..29e04c3c2fa60832ad7c0147950d8605973cf2b5 100644
--- a/Source/core/animation/LegacyStyleInterpolation.h
+++ b/Source/core/animation/LegacyStyleInterpolation.h
@@ -12,18 +12,18 @@ namespace blink {
class LegacyStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<LegacyStyleInterpolation> create(PassRefPtrWillBeRawPtr<AnimatableValue> start, PassRefPtrWillBeRawPtr<AnimatableValue> end, CSSPropertyID id)
+ static LegacyStyleInterpolation* create(AnimatableValue* start, AnimatableValue* end, CSSPropertyID id)
{
- return adoptRefWillBeNoop(new LegacyStyleInterpolation(InterpolableAnimatableValue::create(start), InterpolableAnimatableValue::create(end), id));
+ return new LegacyStyleInterpolation(InterpolableAnimatableValue::create(start), InterpolableAnimatableValue::create(end), id);
}
virtual void apply(StyleResolverState& state) const override
{
- AnimatedStyleBuilder::applyProperty(m_id, state, currentValue().get());
+ AnimatedStyleBuilder::applyProperty(m_id, state, currentValue());
}
virtual bool isLegacyStyleInterpolation() const override final { return true; }
- PassRefPtrWillBeRawPtr<AnimatableValue> currentValue() const
+ AnimatableValue* currentValue() const
{
return toInterpolableAnimatableValue(m_cachedValue.get())->value();
}
@@ -34,7 +34,7 @@ public:
}
private:
- LegacyStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
+ LegacyStyleInterpolation(InterpolableValue* start, InterpolableValue* end, CSSPropertyID id)
: StyleInterpolation(start, end, id)
{
}

Powered by Google App Engine
This is Rietveld 408576698