style: Remove quite useless StyleChange constructor.

This commit is contained in:
Emilio Cobos Álvarez 2017-11-27 15:17:44 +01:00
parent 3bfe529728
commit 92e9f12bd0
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 3 additions and 12 deletions

View file

@ -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|.