mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Ensure we generate a ReconstructFrame hint when -moz-binding changes on a display:none root.
This commit is contained in:
parent
bf16b146e8
commit
e36b4340e1
3 changed files with 45 additions and 3 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue