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

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: # Yet to run webkit layout tests Created 4 years, 10 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..f4d180999ee7361d04f2e0e102c68c3695bcae36 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(this->width(), lengthSize->width())
+ || usesDefaultInterpolation(this->height(), lengthSize->height());
alancutter (OOO until 2018) 2016/02/28 23:14:21 "this->" is redundant and can be removed.
+}
+
} // 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