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

Unified Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 2680163004: Animations: Smooth interpolation for translate none (Closed)
Patch Set: createNoneValue isNoneValue Created 3 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/css/CSSAnimatableValueFactory.cpp ('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/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index 97d0bf45f000bfeb95e81df3908fd38824c823c5..4ce9727643ed50488195d26630145257ada046cd 100644
--- a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -749,6 +749,10 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property,
TranslateTransformOperation* translate =
toTranslateTransformOperation(animatableValueToTransformOperation(
value, TransformOperation::Translate3D));
+ if (!translate) {
+ style->setTranslate(nullptr);
+ return;
+ }
double sourceZoom = toAnimatableTransform(value)->zoom();
double destinationZoom = style->effectiveZoom();
style->setTranslate(
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698