aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2017-08-30 20:03:44 +0200
committerMartin Robinson <mrobinson@igalia.com>2017-09-12 17:15:06 +0200
commitee46bc57ed1fcd4c26748e1ba3da47634bbf7be4 (patch)
tree7e6bd6133552c4085593d17f32f4869080bd5b4a /components/layout/table.rs
parentbffe158fa40fda72e74afde2407cc02cd84d495d (diff)
downloadservo-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.rs')
-rw-r--r--components/layout/table.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs
index 2659b260501..74dcca539ed 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -12,6 +12,7 @@ use block::{ISizeConstraintInput, ISizeConstraintSolution};
use context::LayoutContext;
use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode};
use display_list_builder::{DisplayListBuildState, EstablishContainingBlock};
+use display_list_builder::StackingContextCollectionState;
use euclid::Point2D;
use flow;
use flow::{BaseFlow, EarlyAbsolutePositionInfo, Flow, FlowClass, ImmutableFlowUtils, OpaqueFlow};
@@ -503,7 +504,7 @@ impl Flow for TableFlow {
self.block_flow.build_display_list_for_block(state, border_painting_mode);
}
- 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::Yes);
}