From 3bbd80d3abbfec516ee77b75f387a499bc1c8c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 17 Oct 2017 16:40:59 +0200 Subject: [PATCH] style: Fix propagation of the can_be_fragmented bit on Servo. This was bogus before, but seems like the right thing to do. --- components/style/matching.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/style/matching.rs b/components/style/matching.rs index cf6da78bc19..37694bc0538 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -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