diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-08-30 20:03:44 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-09-12 17:15:06 +0200 |
commit | ee46bc57ed1fcd4c26748e1ba3da47634bbf7be4 (patch) | |
tree | 7e6bd6133552c4085593d17f32f4869080bd5b4a /components/layout/table_wrapper.rs | |
parent | bffe158fa40fda72e74afde2407cc02cd84d495d (diff) | |
download | servo-ee46bc57ed1fcd4c26748e1ba3da47634bbf7be4.tar.gz servo-ee46bc57ed1fcd4c26748e1ba3da47634bbf7be4.zip |
Separate stacking context collection and display list building state
These are two different passes during layout, but previously they
shared a state object. While some of the members are the same, many are
different so we separate them out into two separate objects. We also
change the HashMaps of these state objects to use the FnvHashMap.
Diffstat (limited to 'components/layout/table_wrapper.rs')
-rw-r--r-- | components/layout/table_wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs index 1b7db760a09..1d9c2f6566e 100644 --- a/components/layout/table_wrapper.rs +++ b/components/layout/table_wrapper.rs @@ -18,7 +18,7 @@ use block::{AbsoluteNonReplaced, BlockFlow, FloatNonReplaced, ISizeAndMarginsCom use block::{ISizeConstraintSolution, MarginsMayCollapseFlag}; use context::LayoutContext; use display_list_builder::{BlockFlowDisplayListBuilding, DisplayListBuildState}; -use display_list_builder::EstablishContainingBlock; +use display_list_builder::{EstablishContainingBlock, StackingContextCollectionState}; use euclid::Point2D; use floats::FloatKind; use flow::{Flow, FlowClass, ImmutableFlowUtils, INLINE_POSITION_IS_STATIC, OpaqueFlow}; @@ -457,7 +457,7 @@ impl Flow for TableWrapperFlow { self.block_flow.build_display_list(state); } - fn collect_stacking_contexts(&mut self, state: &mut DisplayListBuildState) { + fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) { self.block_flow.collect_stacking_contexts_for_block(state, EstablishContainingBlock::No); } |