Sequentialize assign_block_size for flows that can be fragmented.

Fragmentation will be intertwined with block size calculation.
This commit is contained in:
Simon Sapin 2015-12-29 17:44:50 +00:00
parent da2b4ab381
commit 9abbd1b5d1
9 changed files with 61 additions and 24 deletions

View file

@ -701,10 +701,10 @@ pub trait MatchMethods<'ln> : TNode<'ln> {
// 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()
);
self.set_can_be_fragmented(parent.map_or(false, |p| {
p.can_be_fragmented() ||
parent_style.as_ref().unwrap().is_multicol()
}));
}
}
}