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

Unified Diff: Source/core/animation/animatable/AnimatableDouble.cpp

Issue 1300323003: Make flex-grow and flex-shrink interpolation continuous with 0 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test Created 5 years, 4 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/animatable/AnimatableDouble.cpp
diff --git a/Source/core/animation/animatable/AnimatableDouble.cpp b/Source/core/animation/animatable/AnimatableDouble.cpp
index 225726fa49435ad201276a83b487d661322bbd2a..f122d44aee2182782dc6e49995b98c45b3ae4a22 100644
--- a/Source/core/animation/animatable/AnimatableDouble.cpp
+++ b/Source/core/animation/animatable/AnimatableDouble.cpp
@@ -36,18 +36,9 @@
namespace blink {
-bool AnimatableDouble::usesDefaultInterpolationWith(const AnimatableValue* value) const
-{
- const AnimatableDouble* other = toAnimatableDouble(value);
- return (m_constraint == InterpolationIsNonContinuousWithZero) && (!m_number || !other->m_number);
-}
-
PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableDouble::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableDouble* other = toAnimatableDouble(value);
- ASSERT(m_constraint == other->m_constraint);
- if ((m_constraint == InterpolationIsNonContinuousWithZero) && (!m_number || !other->m_number))
- return defaultInterpolateTo(this, value, fraction);
return AnimatableDouble::create(blend(m_number, other->m_number, fraction));
}
« no previous file with comments | « Source/core/animation/animatable/AnimatableDouble.h ('k') | Source/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698