diff options
author | Martin Robinson <mrobinson@igalia.com> | 2016-04-22 10:28:27 -0700 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2016-04-22 10:28:27 -0700 |
commit | 05fb2ef6ee307f4e317430aa51a5692d7ba07b51 (patch) | |
tree | ee90ab4f8e5c3bd0b3a135a2e078d94696ff3946 /components/layout/sequential.rs | |
parent | 3d4416e1b0ae758e68900f725979238cc0128f8b (diff) | |
download | servo-05fb2ef6ee307f4e317430aa51a5692d7ba07b51.tar.gz servo-05fb2ef6ee307f4e317430aa51a5692d7ba07b51.zip |
Merge DisplayListEntry into DisplayItem
We don't really need two levels of abstraction for every element in the
DisplayList. This simplifies the complexity of the data structure in
preparation for providing documentation and properly handling scrolling
roots.
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r-- | components/layout/sequential.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs index bc4668f33c6..16aa0d5f277 100644 --- a/components/layout/sequential.rs +++ b/components/layout/sequential.rs @@ -15,7 +15,7 @@ use flow::{self, Flow, ImmutableFlowUtils, InorderFlowTraversal, MutableFlowUtil use flow_ref::{self, FlowRef}; use fragment::FragmentBorderBoxIterator; use generated_content::ResolveGeneratedContent; -use gfx::display_list::{DisplayListEntry, StackingContext}; +use gfx::display_list::{DisplayItem, StackingContext}; use incremental::{REFLOW, STORE_OVERFLOW}; use style::dom::TNode; use style::traversal::DomTraversalContext; @@ -82,7 +82,7 @@ pub fn traverse_flow_tree_preorder(root: &mut FlowRef, pub fn build_display_list_for_subtree(root: &mut FlowRef, root_stacking_context: &mut StackingContext, shared_layout_context: &SharedLayoutContext) - -> Vec<DisplayListEntry> { + -> Vec<DisplayItem> { let flow_root = flow_ref::deref_mut(root); let layout_context = LayoutContext::new(shared_layout_context); flow_root.traverse_preorder(&ComputeAbsolutePositions { layout_context: &layout_context }); |