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

@ -60,7 +60,8 @@ impl HeapSizeOf for ServoRestyleDamage {
impl ServoRestyleDamage {
/// Compute the `StyleDifference` (including the appropriate restyle damage)
/// for a given style change between `old` and `new`.
pub fn compute_style_difference(old: &ComputedValues,
pub fn compute_style_difference(_source: &ComputedValues,
old: &ComputedValues,
new: &ComputedValues)
-> StyleDifference {
let damage = compute_damage(old, new);