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

Unified Diff: third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.cpp

Issue 2667923002: Animations: Fix blend to identity for transform: translate Z (Closed)
Patch Set: Created 3 years, 11 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/LayoutTests/animations/interpolation/transform-interpolation.html ('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/platform/transforms/TranslateTransformOperation.cpp
diff --git a/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.cpp b/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.cpp
index a7d45917c33c365a1e2dca81151238b763811a23..db85a545fdb31d3d81e11b5c0be03a6a8b63d781 100644
--- a/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.cpp
+++ b/third_party/WebKit/Source/platform/transforms/TranslateTransformOperation.cpp
@@ -31,11 +31,12 @@ PassRefPtr<TransformOperation> TranslateTransformOperation::blend(
return this;
const Length zeroLength(0, Fixed);
- if (blendToIdentity)
+ if (blendToIdentity) {
return TranslateTransformOperation::create(
zeroLength.blend(m_x, progress, ValueRangeAll),
zeroLength.blend(m_y, progress, ValueRangeAll),
- blink::blend(0., m_z, progress), m_type);
+ blink::blend(m_z, 0., progress), m_type);
+ }
const TranslateTransformOperation* fromOp =
static_cast<const TranslateTransformOperation*>(from);
« no previous file with comments | « third_party/WebKit/LayoutTests/animations/interpolation/transform-interpolation.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698