Fix warning in scroll root id assignment to TableColGroupFlow

The traversal currently expects every flow to have a scroll root id
assigned, even if it doesn't produce any display items. This change
fixes the error that arises from this situation.
This commit is contained in:
Martin Robinson 2017-08-03 11:34:26 +02:00
parent 3c28c7b091
commit 815ed0c29c

View file

@ -92,7 +92,11 @@ impl Flow for TableColGroupFlow {
// Table columns are invisible.
fn build_display_list(&mut self, _: &mut DisplayListBuildState) { }
fn collect_stacking_contexts(&mut self, _: &mut DisplayListBuildState) {}
fn collect_stacking_contexts(&mut self, state: &mut DisplayListBuildState) {
self.base.stacking_context_id = state.current_stacking_context_id;
self.base.scroll_root_id = Some(state.current_scroll_root_id);
}
fn repair_style(&mut self, _: &::ServoArc<ComputedValues>) {}