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

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

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.h
diff --git a/Source/core/animation/animatable/AnimatableDouble.h b/Source/core/animation/animatable/AnimatableDouble.h
index ae765dc6ed2ea260f796fa83de02120b797eb490..618d0f0da986387ae3d18bc873e7df3bb3fa0d86 100644
--- a/Source/core/animation/animatable/AnimatableDouble.h
+++ b/Source/core/animation/animatable/AnimatableDouble.h
@@ -40,14 +40,9 @@ class CORE_EXPORT AnimatableDouble final : public AnimatableValue {
public:
~AnimatableDouble() override { }
- enum Constraint {
- Unconstrained,
- InterpolationIsNonContinuousWithZero,
- };
-
- static PassRefPtrWillBeRawPtr<AnimatableDouble> create(double number, Constraint constraint = Unconstrained)
+ static PassRefPtrWillBeRawPtr<AnimatableDouble> create(double number)
{
- return adoptRefWillBeNoop(new AnimatableDouble(number, constraint));
+ return adoptRefWillBeNoop(new AnimatableDouble(number));
}
double toDouble() const { return m_number; }
@@ -56,19 +51,16 @@ public:
protected:
PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const override;
- bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- AnimatableDouble(double number, Constraint constraint)
+ AnimatableDouble(double number)
: m_number(number)
- , m_constraint(constraint)
{
}
AnimatableType type() const override { return TypeDouble; }
bool equalTo(const AnimatableValue*) const override;
double m_number;
- Constraint m_constraint;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableDouble, isDouble());
« no previous file with comments | « LayoutTests/transitions/flex-transitions-expected.txt ('k') | Source/core/animation/animatable/AnimatableDouble.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698