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

Unified Diff: Source/core/animation/Interpolation.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: 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
« no previous file with comments | « no previous file | Source/core/animation/Interpolation.cpp » ('j') | Source/core/animation/Interpolation.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Interpolation.h
diff --git a/Source/core/animation/Interpolation.h b/Source/core/animation/Interpolation.h
index 206310c9875007c2688dfc33ae928371aa66b074..6a3cd7a5a4019c31ccf5946975c57b9a945050cd 100644
--- a/Source/core/animation/Interpolation.h
+++ b/Source/core/animation/Interpolation.h
@@ -7,6 +7,7 @@
#include "CSSPropertyNames.h"
#include "core/animation/InterpolableValue.h"
+#include "platform/Length.h"
#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
@@ -99,9 +100,9 @@ private:
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&);
@@ -111,12 +112,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 AnimationInterpolationTest;
};
« no previous file with comments | « no previous file | Source/core/animation/Interpolation.cpp » ('j') | Source/core/animation/Interpolation.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698