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

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

Issue 204743002: Oilpan: Move AnimatableValue's hierarchy to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/AnimatableDouble.cpp
diff --git a/Source/core/animation/AnimatableDouble.cpp b/Source/core/animation/AnimatableDouble.cpp
index 77d80f71ad2c6dd46a2342d50d1cd205d5431008..7a51fb45b89dfd7f03baa146d53bd9f7208a8488 100644
--- a/Source/core/animation/AnimatableDouble.cpp
+++ b/Source/core/animation/AnimatableDouble.cpp
@@ -49,7 +49,7 @@ bool AnimatableDouble::usesDefaultInterpolationWith(const AnimatableValue* value
return (m_constraint == InterpolationIsNonContinuousWithZero) && (!m_number || !other->m_number);
}
-PassRefPtr<AnimatableValue> AnimatableDouble::interpolateTo(const AnimatableValue* value, double fraction) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableDouble::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableDouble* other = toAnimatableDouble(value);
ASSERT(m_constraint == other->m_constraint);
@@ -58,7 +58,7 @@ PassRefPtr<AnimatableValue> AnimatableDouble::interpolateTo(const AnimatableValu
return AnimatableDouble::create(blend(m_number, other->m_number, fraction));
}
-PassRefPtr<AnimatableValue> AnimatableDouble::addWith(const AnimatableValue* value) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableDouble::addWith(const AnimatableValue* value) const
{
// Optimization for adding with 0.
if (!m_number)
@@ -81,4 +81,9 @@ double AnimatableDouble::distanceTo(const AnimatableValue* value) const
return fabs(m_number - other->m_number);
}
+void AnimatableDouble::trace(Visitor* visitor)
+{
+ AnimatableValue::trace(visitor);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698