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

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

Issue 212213007: Oilpan: Move InterpolableValue'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/Interpolation.cpp
diff --git a/Source/core/animation/Interpolation.cpp b/Source/core/animation/Interpolation.cpp
index 4ceda726ea4a40398126d44d1fcc976f9e6e8524..e812e889d520cd0dd2728e5dbe4021959eefe5c6 100644
--- a/Source/core/animation/Interpolation.cpp
+++ b/Source/core/animation/Interpolation.cpp
@@ -10,6 +10,8 @@
namespace WebCore {
+DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Interpolation);
+
namespace {
bool typesMatch(const InterpolableValue* start, const InterpolableValue* end)
@@ -35,7 +37,7 @@ bool typesMatch(const InterpolableValue* start, const InterpolableValue* end)
}
-Interpolation::Interpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end)
+Interpolation::Interpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end)
: m_start(start)
, m_end(end)
, m_cachedFraction(0)
@@ -54,6 +56,13 @@ void Interpolation::interpolate(int iteration, double fraction) const
}
}
+void Interpolation::trace(Visitor* visitor)
+{
+ visitor->trace(m_start);
+ visitor->trace(m_end);
+ visitor->trace(m_cachedValue);
+}
+
void StyleInterpolation::trace(Visitor* visitor)
{
Interpolation::trace(visitor);
« Source/core/animation/InterpolableValue.h ('K') | « Source/core/animation/Interpolation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698