aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_colgroup.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2017-07-27 11:25:59 +0200
committerMartin Robinson <mrobinson@igalia.com>2017-08-03 17:52:02 +0200
commitdaf638bc3f1deebb23cc4375f872a1b1b4bc543c (patch)
tree87ea0fd8ab332146fcd829c0410d7b9a99d033b8 /components/layout/table_colgroup.rs
parent46f6e68bad7aafc380976bfddd9e76bfaa86229e (diff)
downloadservo-daf638bc3f1deebb23cc4375f872a1b1b4bc543c.tar.gz
servo-daf638bc3f1deebb23cc4375f872a1b1b4bc543c.zip
Fix fixed position items with parents with CSS clips
In order to properly handle CSS clipping, we need to keep track of what the different kinds of clips that we have. On one hand, clipping due to overflow rules should respect the containing block hierarchy, while CSS clipping should respect the flow tree hierarchy. In order to represent the complexity of items that are scrolled via one clip/scroll frame and clipped by another we keep track of that status with a ClipAndScrollInfo.
Diffstat (limited to 'components/layout/table_colgroup.rs')
-rw-r--r--components/layout/table_colgroup.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/table_colgroup.rs b/components/layout/table_colgroup.rs
index 97d0ef89022..10a87903403 100644
--- a/components/layout/table_colgroup.rs
+++ b/components/layout/table_colgroup.rs
@@ -94,10 +94,9 @@ impl Flow for TableColGroupFlow {
fn collect_stacking_contexts(&mut self, state: &mut DisplayListBuildState) {
self.base.stacking_context_id = state.current_stacking_context_id;
- self.base.scroll_root_id = Some(state.current_scroll_root_id);
+ self.base.clip_and_scroll_info = Some(state.current_clip_and_scroll_info);
}
-
fn repair_style(&mut self, _: &::ServoArc<ComputedValues>) {}
fn compute_overflow(&self) -> Overflow {