Lines Matching refs:left
45 PassRefPtr<AnimatableValue> AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction)
47 ASSERT(left);
49 ASSERT(!left->isNeutral());
52 if (fraction && fraction != 1 && left->isSameType(right))
53 return left->interpolateTo(right, fraction);
55 return defaultInterpolateTo(left, right, fraction);
58 PassRefPtr<AnimatableValue> AnimatableValue::add(const AnimatableValue* left, const AnimatableValue* right)
60 ASSERT(left);
63 if (left->isNeutral())
66 return takeConstRef(left);
68 if (left->isSameType(right))
69 return left->addWith(right);
71 return defaultAddWith(left, right);