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

Unified Diff: Source/core/animation/AnimatableLengthSize.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
« no previous file with comments | « Source/core/animation/AnimatableLengthSize.h ('k') | Source/core/animation/AnimatableLengthTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableLengthSize.cpp
diff --git a/Source/core/animation/AnimatableLengthSize.cpp b/Source/core/animation/AnimatableLengthSize.cpp
index b422f39a93126ee63d157f47eed40dd68605379a..e08c7db40c92b94f7fba2e37dc226a957c11c152 100644
--- a/Source/core/animation/AnimatableLengthSize.cpp
+++ b/Source/core/animation/AnimatableLengthSize.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
-PassRefPtr<AnimatableValue> AnimatableLengthSize::interpolateTo(const AnimatableValue* value, double fraction) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableLengthSize::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(value);
return AnimatableLengthSize::create(
@@ -41,7 +41,7 @@ PassRefPtr<AnimatableValue> AnimatableLengthSize::interpolateTo(const Animatable
AnimatableValue::interpolate(this->height(), lengthSize->height(), fraction));
}
-PassRefPtr<AnimatableValue> AnimatableLengthSize::addWith(const AnimatableValue* value) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableLengthSize::addWith(const AnimatableValue* value) const
{
const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(value);
return AnimatableLengthSize::create(
@@ -55,4 +55,10 @@ bool AnimatableLengthSize::equalTo(const AnimatableValue* value) const
return width()->equals(lengthSize->width()) && height()->equals(lengthSize->height());
}
+void AnimatableLengthSize::trace(Visitor* visitor)
+{
+ visitor->trace(m_width);
+ visitor->trace(m_height);
+}
+
}
« no previous file with comments | « Source/core/animation/AnimatableLengthSize.h ('k') | Source/core/animation/AnimatableLengthTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698