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

Unified Diff: Source/core/animation/AnimatableLengthBox.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/AnimatableLengthBox.cpp
diff --git a/Source/core/animation/AnimatableLengthBox.cpp b/Source/core/animation/AnimatableLengthBox.cpp
index 825a13516555354fd44919c1bc6e8063d7e15015..5cc42d4dbafbfe97a70d0dd7d52eaf0859b4dd57 100644
--- a/Source/core/animation/AnimatableLengthBox.cpp
+++ b/Source/core/animation/AnimatableLengthBox.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
-PassRefPtr<AnimatableValue> AnimatableLengthBox::interpolateTo(const AnimatableValue* value, double fraction) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableLengthBox::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableLengthBox* lengthBox = toAnimatableLengthBox(value);
return AnimatableLengthBox::create(
@@ -43,7 +43,7 @@ PassRefPtr<AnimatableValue> AnimatableLengthBox::interpolateTo(const AnimatableV
AnimatableValue::interpolate(this->bottom(), lengthBox->bottom(), fraction));
}
-PassRefPtr<AnimatableValue> AnimatableLengthBox::addWith(const AnimatableValue* value) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableLengthBox::addWith(const AnimatableValue* value) const
{
const AnimatableLengthBox* lengthBox = toAnimatableLengthBox(value);
return AnimatableLengthBox::create(
@@ -62,4 +62,13 @@ bool AnimatableLengthBox::equalTo(const AnimatableValue* value) const
&& bottom()->equals(lengthBox->bottom());
}
+void AnimatableLengthBox::trace(Visitor* visitor)
+{
+ visitor->trace(m_left);
+ visitor->trace(m_right);
+ visitor->trace(m_top);
+ visitor->trace(m_bottom);
+ AnimatableValue::trace(visitor);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698