style: Ensure we generate a ReconstructFrame hint when -moz-binding changes on a display:none root.

This commit is contained in:
Cameron McCormack 2017-07-25 11:11:47 +08:00
parent bf16b146e8
commit e36b4340e1
3 changed files with 45 additions and 3 deletions

View file

@ -69,6 +69,17 @@ impl ServoRestyleDamage {
StyleDifference::new(damage, change)
}
/// Computes the `StyleDifference` between the two `ComputedValues` objects
/// for the case where the old and new style are both `display: none`.
///
/// For Servo we never need to generate any damage for such elements.
pub fn compute_undisplayed_style_difference(
_old_style: &ComputedValues,
_new_style: &ComputedValues,
) -> StyleDifference {
StyleDifference::new(Self::empty(), StyleChange::Unchanged)
}
/// Returns a bitmask that represents a flow that needs to be rebuilt and
/// reflowed.
///