mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Fix propagation of the can_be_fragmented bit on Servo.
This was bogus before, but seems like the right thing to do.
This commit is contained in:
parent
f3ea248188
commit
3bbd80d3ab
1 changed files with 9 additions and 0 deletions
|
@ -413,6 +413,15 @@ trait PrivateMatchMethods: TElement {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
{
|
||||
// We may need to set or propagate the CAN_BE_FRAGMENTED bit
|
||||
// on our children.
|
||||
if old_values.is_multicol() != new_values.is_multicol() {
|
||||
return ChildCascadeRequirement::MustCascadeChildren;
|
||||
}
|
||||
}
|
||||
|
||||
// We could prove that, if our children don't inherit reset
|
||||
// properties, we can stop the cascade.
|
||||
ChildCascadeRequirement::MustCascadeChildrenIfInheritResetStyle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue