mirror of
https://github.com/servo/servo.git
synced 2025-06-11 10:00:18 +00:00
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.
This commit is contained in:
parent
3d4416e1b0
commit
05fb2ef6ee
5 changed files with 217 additions and 183 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue