aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/animation.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-07-20 17:26:53 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-07-20 17:26:53 +0200
commitef4fbfaa6b1ca0a2454cdfab5004e252fd55ece4 (patch)
tree2f81f70a511f4c9f4d99c4d4452ebede2fcb3968 /components/layout/animation.rs
parent3d3f30a3f923267f7214f6b287eaaedcf4cfffd8 (diff)
downloadservo-ef4fbfaa6b1ca0a2454cdfab5004e252fd55ece4.tar.gz
servo-ef4fbfaa6b1ca0a2454cdfab5004e252fd55ece4.zip
Revert "Backed out changeset b10e6ba9cbdb because gecko part had to be backed out."
This reverts commit b96d96d448c8ff93f212f225013461999540a5d0. The fix on the Gecko side is trivial, and I can land it after this lands.
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r--components/layout/animation.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs
index 5d7a1a87acc..e4a2782c127 100644
--- a/components/layout/animation.rs
+++ b/components/layout/animation.rs
@@ -161,7 +161,9 @@ pub fn recalc_style_for_animations(context: &LayoutContext,
&mut fragment.style,
&ServoMetricsProvider);
let difference =
- RestyleDamage::compute_style_difference(&old_style, &fragment.style);
+ RestyleDamage::compute_style_difference(&old_style,
+ &old_style,
+ &fragment.style);
damage |= difference.damage;
}
}