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

Unified Diff: Source/core/animation/InertAnimation.cpp

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: Build fix Created 5 years, 8 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/InertAnimation.cpp
diff --git a/Source/core/animation/InertAnimation.cpp b/Source/core/animation/InertAnimation.cpp
index eacfec2578f1d6229b86349cbcbb3a958c26e163..e43f1d6b6137cd4b8ce574f49496b150cdf15fdf 100644
--- a/Source/core/animation/InertAnimation.cpp
+++ b/Source/core/animation/InertAnimation.cpp
@@ -34,12 +34,12 @@
namespace blink {
-PassRefPtrWillBeRawPtr<InertAnimation> InertAnimation::create(PassRefPtrWillBeRawPtr<AnimationEffect> effect, const Timing& timing, bool paused, double inheritedTime)
+InertAnimation* InertAnimation::create(AnimationEffect* effect, const Timing& timing, bool paused, double inheritedTime)
{
- return adoptRefWillBeNoop(new InertAnimation(effect, timing, paused, inheritedTime));
+ return new InertAnimation(effect, timing, paused, inheritedTime);
}
-InertAnimation::InertAnimation(PassRefPtrWillBeRawPtr<AnimationEffect> effect, const Timing& timing, bool paused, double inheritedTime)
+InertAnimation::InertAnimation(AnimationEffect* effect, const Timing& timing, bool paused, double inheritedTime)
: AnimationNode(timing)
, m_effect(effect)
, m_paused(paused)
@@ -47,11 +47,11 @@ InertAnimation::InertAnimation(PassRefPtrWillBeRawPtr<AnimationEffect> effect, c
{
}
-void InertAnimation::sample(OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>& result)
+void InertAnimation::sample(HeapVector<Member<Interpolation>>* result)
{
updateInheritedTime(m_inheritedTime, TimingUpdateOnDemand);
if (!isInEffect()) {
- result.clear();
+ result->clear();
return;
}

Powered by Google App Engine
This is Rietveld 408576698