mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Use RestyleDamage to determine whether we must continue cascading style changes to children.
This commit is contained in:
parent
715d18d377
commit
8b7a414b1c
5 changed files with 221 additions and 109 deletions
|
@ -160,7 +160,9 @@ pub fn recalc_style_for_animations(context: &LayoutContext,
|
|||
animation,
|
||||
&mut fragment.style,
|
||||
&ServoMetricsProvider);
|
||||
damage |= RestyleDamage::compute(&old_style, &fragment.style);
|
||||
let difference =
|
||||
RestyleDamage::compute_style_difference(&old_style, &fragment.style);
|
||||
damage |= difference.damage;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue