From b0a91ecd3a2060f6f610e08a529e6f90e1536297 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sat, 29 Jul 2017 08:45:48 +0900 Subject: [PATCH] Fix multiply matrix order for skew. --- .../style/properties/helpers/animated_properties.mako.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 1bde429c2c45..1b070e748794 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -2397,19 +2397,19 @@ impl From for ComputedMatrix { let mut temp = ComputedMatrix::identity(); if decomposed.skew.2 != 0.0 { temp.m32 = decomposed.skew.2; - matrix = multiply(matrix, temp); + matrix = multiply(temp, matrix); } if decomposed.skew.1 != 0.0 { temp.m32 = 0.0; temp.m31 = decomposed.skew.1; - matrix = multiply(matrix, temp); + matrix = multiply(temp, matrix); } if decomposed.skew.0 != 0.0 { temp.m31 = 0.0; temp.m21 = decomposed.skew.0; - matrix = multiply(matrix, temp); + matrix = multiply(temp, matrix); } // Apply scale