mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Remove quite useless StyleChange constructor.
This commit is contained in:
parent
3bfe529728
commit
92e9f12bd0
3 changed files with 3 additions and 12 deletions
|
@ -72,7 +72,8 @@ impl GeckoRestyleDamage {
|
|||
} else {
|
||||
StyleChange::Unchanged
|
||||
};
|
||||
StyleDifference::new(GeckoRestyleDamage(nsChangeHint(hint)), change)
|
||||
let damage = GeckoRestyleDamage(nsChangeHint(hint));
|
||||
StyleDifference { damage, change }
|
||||
}
|
||||
|
||||
/// Returns true if this restyle damage contains all the damage of |other|.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue