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.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.rs')
-rw-r--r-- | components/layout/table.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs index e373385e050..713249cf145 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -11,7 +11,7 @@ use block::{BlockFlow, CandidateBSizeIterator, ISizeAndMarginsComputer}; use block::{ISizeConstraintInput, ISizeConstraintSolution}; use context::LayoutContext; use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode}; -use display_list_builder::{DisplayListBuildState, EstablishContainingBlock}; +use display_list_builder::{DisplayListBuildState, StackingContextCollectionFlags}; use display_list_builder::StackingContextCollectionState; use euclid::Point2D; use flow; @@ -505,7 +505,8 @@ impl Flow for TableFlow { } fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) { - self.block_flow.collect_stacking_contexts_for_block(state, EstablishContainingBlock::Yes); + self.block_flow.collect_stacking_contexts_for_block(state, + StackingContextCollectionFlags::empty()); } fn repair_style(&mut self, new_style: &::ServoArc<ComputedValues>) { |