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

Unified Diff: Source/core/animation/interpolation/LengthStyleInterpolation.h

Issue 273903002: Web Animations API: Length properties responsive to style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 7 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/interpolation/LengthStyleInterpolation.h
diff --git a/Source/core/animation/interpolation/LengthStyleInterpolation.h b/Source/core/animation/interpolation/LengthStyleInterpolation.h
index 17aa7d342eafac080b7f5f8f545c40d0a0efe886..d344957da8c00a54fa88a927bd1f06f0557b20ed 100644
--- a/Source/core/animation/interpolation/LengthStyleInterpolation.h
+++ b/Source/core/animation/interpolation/LengthStyleInterpolation.h
@@ -6,14 +6,15 @@
#define LengthStyleInterpolation_h
#include "core/animation/interpolation/StyleInterpolation.h"
+#include "platform/Length.h"
namespace WebCore {
class LengthStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<LengthStyleInterpolation> create(CSSValue* start, CSSValue* end, CSSPropertyID id)
+ static PassRefPtrWillBeRawPtr<LengthStyleInterpolation> create(CSSValue* start, CSSValue* end, CSSPropertyID id, ValueRange range)
{
- return adoptRefWillBeNoop(new LengthStyleInterpolation(lengthToInterpolableValue(start), lengthToInterpolableValue(end), id));
+ return adoptRefWillBeNoop(new LengthStyleInterpolation(lengthToInterpolableValue(start), lengthToInterpolableValue(end), id, range));
}
static bool canCreateFrom(const CSSValue&);
@@ -23,12 +24,15 @@ public:
virtual void trace(Visitor*) OVERRIDE;
private:
- LengthStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
+ LengthStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id, ValueRange range)
: StyleInterpolation(start, end, id)
+ , m_range(range)
{ }
static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthToInterpolableValue(CSSValue*);
- static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLength(InterpolableValue*);
+ static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToLength(InterpolableValue*, ValueRange);
+
+ ValueRange m_range;
friend class AnimationLengthStyleInterpolationTest;
};
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/animation/interpolation/LengthStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698