From 82e97b8ec5d5323dd6ff001065f54edc9fb94bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 26 May 2018 23:50:11 +0200 Subject: [PATCH] style: The fix: scale and translate appropriately. Loops are hard. This hasn't been the funniest Saturday evening. Bug: 1459403 Reviewed-by: hiro MozReview-Commit-ID: I8rfuIRIsrY --- .../style/properties/helpers/animated_properties.mako.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 673ba86f8b3..1c282e46b51 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -2154,7 +2154,7 @@ impl From for Matrix3D { % endfor // Apply translation - % for i in range(1, 4): + % for i in range(1, 5): % for j in range(1, 4): matrix.m4${i} += decomposed.translate.${j - 1} * matrix.m${j}${i}; % endfor @@ -2206,9 +2206,9 @@ impl From for Matrix3D { // Apply scale % for i in range(1, 4): - % for j in range(1, 4): - matrix.m${i}${j} *= decomposed.scale.${i - 1}; - % endfor + % for j in range(1, 5): + matrix.m${i}${j} *= decomposed.scale.${i - 1}; + % endfor % endfor matrix