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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp

Issue 2364503002: CSS Motion Path: animate offset-anchor and offset-position (Closed)
Patch Set: no interpolation to/from auto Created 4 years, 3 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: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
index 334057be12f9207b3d3cb88e702dfcefbfe643f5..e3ef20f33861cbf3b7f93a4ad3c22a1213098bb6 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
@@ -32,6 +32,12 @@
namespace blink {
+bool AnimatableLengthPoint::usesDefaultInterpolationWith(const AnimatableValue* value) const
+{
+ const AnimatableLengthPoint* other = toAnimatableLengthPoint(value);
+ return this->x()->isUnknown() || other->x()->isUnknown();
+}
+
PassRefPtr<AnimatableValue> AnimatableLengthPoint::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableLengthPoint* lengthPoint = toAnimatableLengthPoint(value);

Powered by Google App Engine
This is Rietveld 408576698