mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Pass old ComputedValues and old cached struct bits to Gecko_CalcStyleDifference.
This commit is contained in:
parent
25dc352d7c
commit
914ba609c0
4 changed files with 10 additions and 7 deletions
|
@ -768,7 +768,7 @@ pub trait MatchMethods : TElement {
|
|||
) -> StyleDifference {
|
||||
debug_assert!(pseudo.map_or(true, |p| p.is_eager()));
|
||||
if let Some(source) = self.existing_style_for_restyle_damage(old_values, pseudo) {
|
||||
return RestyleDamage::compute_style_difference(source, new_values)
|
||||
return RestyleDamage::compute_style_difference(source, old_values, new_values)
|
||||
}
|
||||
|
||||
let new_display = new_values.get_box().clone_display();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue