style: Pass old ComputedValues and old cached struct bits to Gecko_CalcStyleDifference.

This commit is contained in:
Cameron McCormack 2017-07-19 17:48:53 +08:00
parent 25dc352d7c
commit 914ba609c0
4 changed files with 10 additions and 7 deletions

View file

@ -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;
}
}