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/list_item.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/list_item.rs')
-rw-r--r-- | components/layout/list_item.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/list_item.rs b/components/layout/list_item.rs index 22d2f8786d0..a8346411285 100644 --- a/components/layout/list_item.rs +++ b/components/layout/list_item.rs @@ -11,6 +11,7 @@ use app_units::Au; use block::BlockFlow; use context::{LayoutContext, with_thread_local_font_context}; use display_list_builder::{DisplayListBuildState, ListItemFlowDisplayListBuilding}; +use display_list_builder::StackingContextCollectionState; use euclid::Point2D; use floats::FloatKind; use flow::{Flow, FlowClass, OpaqueFlow}; @@ -147,7 +148,7 @@ impl Flow for ListItemFlow { self.build_display_list_for_list_item(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(state); } |