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

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

Issue 1732323003: Handling transition animation between non-interpolable values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted Expected file of webkit mask size interpolation as trybot was failing Created 4 years, 9 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 | « third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
index 67647d335dc27e152c3937d6ff5d7ae7871b7d06..8d552f0c78646f4652b0796f42a3e02c9a3078c3 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
@@ -46,4 +46,11 @@ bool AnimatableLengthSize::equalTo(const AnimatableValue* value) const
return width()->equals(lengthSize->width()) && height()->equals(lengthSize->height());
}
+bool AnimatableLengthSize::usesDefaultInterpolationWith(const AnimatableValue* other) const
+{
+ const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(other);
+ return usesDefaultInterpolation(width(), lengthSize->width())
+ || usesDefaultInterpolation(height(), lengthSize->height());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698