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:
Emilio Cobos Álvarez 2017-10-17 16:40:59 +02:00
parent f3ea248188
commit 3bbd80d3ab
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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