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

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: 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
« no previous file with comments | « Source/core/animation/KeyframeEffectTest.cpp ('k') | Source/core/animation/LengthBoxStyleInterpolation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/LegacyStyleInterpolation.h
diff --git a/Source/core/animation/LegacyStyleInterpolation.h b/Source/core/animation/LegacyStyleInterpolation.h
index aceb97d6b844261d3dcc71dbf68058b6e8102aa7..45afafa22ddaae510ad35513ddc0c862418ce7ab 100644
--- a/Source/core/animation/LegacyStyleInterpolation.h
+++ b/Source/core/animation/LegacyStyleInterpolation.h
@@ -12,20 +12,20 @@ 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);
}
void apply(StyleResolverState& state) const override
{
- AnimatedStyleBuilder::applyProperty(m_id, state, currentValue().get());
+ AnimatedStyleBuilder::applyProperty(m_id, state, currentValue());
}
bool isLegacyStyleInterpolation() const final { return true; }
- PassRefPtrWillBeRawPtr<AnimatableValue> currentValue() const
+ AnimatableValue* currentValue() const
{
- return toInterpolableAnimatableValue(m_cachedValue.get())->value();
+ return toInterpolableAnimatableValue(m_cachedValue)->value();
}
DEFINE_INLINE_VIRTUAL_TRACE()
@@ -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)
{
}
« no previous file with comments | « Source/core/animation/KeyframeEffectTest.cpp ('k') | Source/core/animation/LengthBoxStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698