mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
3c28c7b091
commit
815ed0c29c
1 changed files with 5 additions and 1 deletions
|
@ -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>) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue