Disable incremental reflow for multicol and their descendants.

Fragmentation with dynamic updates is hard.
This commit is contained in:
Simon Sapin 2015-09-18 15:27:08 +02:00
parent 357463864b
commit da2b4ab381
6 changed files with 41 additions and 1 deletions

View file

@ -700,6 +700,11 @@ pub trait MatchMethods<'ln> : TNode<'ln> {
// This method needs to borrow the data as mutable, so make sure data_ref goes out of
// scope first.
self.set_restyle_damage(damage);
self.set_in_fragmentation_container(
parent.as_ref().map_or(false, |p| p.in_fragmentation_container()) ||
self.borrow_data().unwrap().style.as_ref().unwrap().is_multicol()
);
}
}
}