diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-09-14 12:19:50 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-09-15 15:55:56 +0200 |
commit | f1596e83a9ede7ad17ce9c51aa04912e82fb9b5c (patch) | |
tree | 04922d5327e7b61904a190ddee9bf49b9c8c43f1 /components/layout/table_rowgroup.rs | |
parent | 89d5780570894a54774542e79585b79ece3f2dce (diff) | |
download | servo-f1596e83a9ede7ad17ce9c51aa04912e82fb9b5c.tar.gz servo-f1596e83a9ede7ad17ce9c51aa04912e82fb9b5c.zip |
Fix panic when tables having position:sticky
We no longer do any stacking context or clip node creation for table
wrappers, instead relying on their TableFlows to do this.
Diffstat (limited to 'components/layout/table_rowgroup.rs')
-rw-r--r-- | components/layout/table_rowgroup.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/table_rowgroup.rs b/components/layout/table_rowgroup.rs index aabc56b8e54..ee596d45525 100644 --- a/components/layout/table_rowgroup.rs +++ b/components/layout/table_rowgroup.rs @@ -10,7 +10,7 @@ use app_units::Au; use block::{BlockFlow, ISizeAndMarginsComputer}; use context::LayoutContext; use display_list_builder::{BlockFlowDisplayListBuilding, DisplayListBuildState}; -use display_list_builder::{EstablishContainingBlock, StackingContextCollectionState}; +use display_list_builder::{NEVER_CREATES_CONTAINING_BLOCK, StackingContextCollectionState}; use euclid::Point2D; use flow::{Flow, FlowClass, OpaqueFlow}; use fragment::{Fragment, FragmentBorderBoxIterator, Overflow}; @@ -184,7 +184,7 @@ impl Flow for TableRowGroupFlow { } fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) { - self.block_flow.collect_stacking_contexts_for_block(state, EstablishContainingBlock::No); + self.block_flow.collect_stacking_contexts_for_block(state, NEVER_CREATES_CONTAINING_BLOCK); } fn repair_style(&mut self, new_style: &::ServoArc<ComputedValues>) { |