mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
// We could prove that, if our children don't inherit reset
|
||||||
// properties, we can stop the cascade.
|
// properties, we can stop the cascade.
|
||||||
ChildCascadeRequirement::MustCascadeChildrenIfInheritResetStyle
|
ChildCascadeRequirement::MustCascadeChildrenIfInheritResetStyle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue