mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make RestyleDamage::compute take no optional argument, delegate the handling to the caller.
This commit is contained in:
parent
6b60383f24
commit
1c322f35a6
5 changed files with 79 additions and 65 deletions
|
@ -135,7 +135,7 @@ pub fn recalc_style_for_animations(context: &SharedLayoutContext,
|
|||
update_style_for_animation(&context.style_context,
|
||||
animation,
|
||||
&mut fragment.style);
|
||||
damage |= RestyleDamage::compute(Some(&old_style), &fragment.style);
|
||||
damage |= RestyleDamage::compute(&old_style, &fragment.style);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue