aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_wrapper.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/table_wrapper.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/table_wrapper.rs')
-rw-r--r--components/layout/table_wrapper.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs
index ec029f8d06f..1fcf08b249b 100644
--- a/components/layout/table_wrapper.rs
+++ b/components/layout/table_wrapper.rs
@@ -23,6 +23,7 @@ use floats::FloatKind;
use flow::{Flow, FlowClass, ImmutableFlowUtils, INLINE_POSITION_IS_STATIC, OpaqueFlow};
use fragment::{Fragment, FragmentBorderBoxIterator, Overflow};
use gfx::display_list::StackingContext;
+use gfx_traits::ScrollRootId;
use gfx_traits::print_tree::PrintTree;
use model::MaybeAuto;
use std::cmp::{max, min};
@@ -468,8 +469,10 @@ impl Flow for TableWrapperFlow {
self.block_flow.build_display_list(state);
}
- fn collect_stacking_contexts(&mut self, parent: &mut StackingContext) {
- self.block_flow.collect_stacking_contexts(parent);
+ fn collect_stacking_contexts(&mut self,
+ parent: &mut StackingContext,
+ parent_scroll_root_id: ScrollRootId) {
+ self.block_flow.collect_stacking_contexts(parent, parent_scroll_root_id);
}
fn repair_style(&mut self, new_style: &Arc<ServoComputedValues>) {