Revert "Backed out changeset b10e6ba9cbdb because gecko part had to be backed out."

This reverts commit b96d96d448.

The fix on the Gecko side is trivial, and I can land it after this lands.
This commit is contained in:
Emilio Cobos Álvarez 2017-07-20 17:26:53 +02:00
parent 3d3f30a3f9
commit ef4fbfaa6b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
6 changed files with 18 additions and 10 deletions

View file

@ -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();