mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Remove the skip_applying_damage "optimization".
We already remove all change hints down the tree when finding a reframe hint using ClearServoRestyleFromSubtree in ServoRestyleManager, so this is useless. MozReview-Commit-ID: 1twx7iPt79x
This commit is contained in:
parent
e7a654dd13
commit
57121a2e15
2 changed files with 1 additions and 20 deletions
|
@ -333,7 +333,6 @@ trait PrivateMatchMethods: TElement {
|
|||
fn accumulate_damage_for(
|
||||
&self,
|
||||
shared_context: &SharedStyleContext,
|
||||
skip_applying_damage: bool,
|
||||
damage: &mut RestyleDamage,
|
||||
old_values: &ComputedValues,
|
||||
new_values: &ComputedValues,
|
||||
|
@ -345,9 +344,7 @@ trait PrivateMatchMethods: TElement {
|
|||
let difference =
|
||||
self.compute_style_difference(old_values, new_values, pseudo);
|
||||
|
||||
if !skip_applying_damage {
|
||||
*damage |= difference.damage;
|
||||
}
|
||||
*damage |= difference.damage;
|
||||
|
||||
debug!(" > style difference: {:?}", difference);
|
||||
|
||||
|
@ -590,7 +587,6 @@ pub trait MatchMethods : TElement {
|
|||
cascade_requirement,
|
||||
self.accumulate_damage_for(
|
||||
context.shared,
|
||||
data.skip_applying_damage(),
|
||||
&mut data.damage,
|
||||
&old_primary_style,
|
||||
new_primary_style,
|
||||
|
@ -612,7 +608,6 @@ pub trait MatchMethods : TElement {
|
|||
(&Some(ref old), &Some(ref new)) => {
|
||||
self.accumulate_damage_for(
|
||||
context.shared,
|
||||
data.skip_applying_damage(),
|
||||
&mut data.damage,
|
||||
old,
|
||||
new,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue