aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/sequential.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2016-10-21 08:03:01 +0200
committerMartin Robinson <mrobinson@igalia.com>2016-10-30 21:10:04 +0100
commit71d285af800c874e5bc9d302d3e45e14de1fb7bb (patch)
treed20b82fd45b9b8c94009ed046dbbcf19ecab68ea /components/layout/sequential.rs
parentfbec79e920c0b0ddeaeeb6c0cc97b20ad85729e0 (diff)
downloadservo-71d285af800c874e5bc9d302d3e45e14de1fb7bb.tar.gz
servo-71d285af800c874e5bc9d302d3e45e14de1fb7bb.zip
Use a new id type for tracking scrolling areas
This is a step in disassociating scrolling areas from stacking contexts. Now scroll areas are defined by unique ids, which means that in the future stacking context will be able to contain more than one.
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r--components/layout/sequential.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs
index f2964976ed3..51f2ac874a0 100644
--- a/components/layout/sequential.rs
+++ b/components/layout/sequential.rs
@@ -15,6 +15,7 @@ use flow::IS_ABSOLUTELY_POSITIONED;
use fragment::FragmentBorderBoxIterator;
use generated_content::ResolveGeneratedContent;
use gfx::display_list::{DisplayItem, StackingContext};
+use gfx_traits::ScrollRootId;
use script_layout_interface::restyle_damage::{REFLOW, STORE_OVERFLOW};
use style::context::StyleContext;
use traversal::{AssignBSizes, AssignISizes, BubbleISizes, BuildDisplayList};
@@ -78,7 +79,7 @@ pub fn build_display_list_for_subtree(flow_root: &mut Flow,
root_stacking_context: &mut StackingContext,
shared_layout_context: &SharedLayoutContext)
-> Vec<DisplayItem> {
- flow_root.collect_stacking_contexts(root_stacking_context);
+ flow_root.collect_stacking_contexts(root_stacking_context, ScrollRootId::root());
let mut build_display_list = BuildDisplayList {
state: DisplayListBuildState::new(shared_layout_context,
flow::base(flow_root).stacking_context_id),