diff options
author | Martin Robinson <mrobinson@igalia.com> | 2016-10-21 08:03:01 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2016-10-30 21:10:04 +0100 |
commit | 71d285af800c874e5bc9d302d3e45e14de1fb7bb (patch) | |
tree | d20b82fd45b9b8c94009ed046dbbcf19ecab68ea /components/layout/table_cell.rs | |
parent | fbec79e920c0b0ddeaeeb6c0cc97b20ad85729e0 (diff) | |
download | servo-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_cell.rs')
-rw-r--r-- | components/layout/table_cell.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs index 8e6394b9a75..ca2af6a4897 100644 --- a/components/layout/table_cell.rs +++ b/components/layout/table_cell.rs @@ -15,6 +15,7 @@ use euclid::{Point2D, Rect, SideOffsets2D, Size2D}; use flow::{self, Flow, FlowClass, IS_ABSOLUTELY_POSITIONED, OpaqueFlow}; use fragment::{Fragment, FragmentBorderBoxIterator, Overflow}; use gfx::display_list::StackingContext; +use gfx_traits::ScrollRootId; use gfx_traits::print_tree::PrintTree; use layout_debug; use model::MaybeAuto; @@ -256,8 +257,10 @@ impl Flow for TableCellFlow { self.block_flow.build_display_list_for_block(state, border_painting_mode) } - 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>) { |