summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/animation/AnimatableLengthBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/animation/AnimatableLengthBox.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/animation/AnimatableLengthBox.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/chromium/third_party/WebKit/Source/core/animation/AnimatableLengthBox.cpp b/chromium/third_party/WebKit/Source/core/animation/AnimatableLengthBox.cpp
index 825a1351655..25896210c9e 100644
--- a/chromium/third_party/WebKit/Source/core/animation/AnimatableLengthBox.cpp
+++ b/chromium/third_party/WebKit/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,16 +43,6 @@ PassRefPtr<AnimatableValue> AnimatableLengthBox::interpolateTo(const AnimatableV
AnimatableValue::interpolate(this->bottom(), lengthBox->bottom(), fraction));
}
-PassRefPtr<AnimatableValue> AnimatableLengthBox::addWith(const AnimatableValue* value) const
-{
- const AnimatableLengthBox* lengthBox = toAnimatableLengthBox(value);
- return AnimatableLengthBox::create(
- AnimatableValue::add(this->left(), lengthBox->left()),
- AnimatableValue::add(this->right(), lengthBox->right()),
- AnimatableValue::add(this->top(), lengthBox->top()),
- AnimatableValue::add(this->bottom(), lengthBox->bottom()));
-}
-
bool AnimatableLengthBox::equalTo(const AnimatableValue* value) const
{
const AnimatableLengthBox* lengthBox = toAnimatableLengthBox(value);
@@ -62,4 +52,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);
+}
+
}