Make TableCellStyleIterator operate on immutable flows

This commit is contained in:
Manish Goregaokar 2018-02-14 16:00:42 -08:00
parent 265a2ab2cc
commit 21140e7a0a
2 changed files with 68 additions and 15 deletions

View file

@ -247,8 +247,15 @@ impl Flow for TableCellFlow {
}
fn build_display_list(&mut self, _: &mut DisplayListBuildState) {
use style::servo::restyle_damage::ServoRestyleDamage;
// This is handled by TableCellStyleInfo::build_display_list()
// when the containing table builds its display list
if self.visible {
// we skip setting the damage in TableCellStyleInfo::build_display_list()
// because we only have immutable access
self.block_flow.fragment.restyle_damage.remove(ServoRestyleDamage::REPAINT);
}
}
fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) {