diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-08-17 11:44:19 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-08-17 20:46:27 +0200 |
commit | 57704b04816d7851dd484077ca3156c5f198b755 (patch) | |
tree | 8067f3bda2ef9f3d0100fec2662daea2923e7dc2 /components/layout/table_caption.rs | |
parent | 0a24c2f03cc8c90798c790b3d8633c17165d63e1 (diff) | |
download | servo-57704b04816d7851dd484077ca3156c5f198b755.tar.gz servo-57704b04816d7851dd484077ca3156c5f198b755.zip |
Improve containing block creation for position:absolute flows
Instead of only promoting flows with positioned fragments to containing
blocks, also do this for flows which have the transform, perspective or
filter properties set. This is what the spec requires and also fixes
some failing tests. It will allow us to stop creating stacking contexts
for overflow:hidden and overflow:scroll flows.
Fixes #18091.
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r-- | components/layout/table_caption.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 6fc188ce71a..8e5fa302028 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -91,6 +91,14 @@ impl Flow for TableCaptionFlow { self.block_flow.compute_overflow() } + fn contains_roots_of_absolute_flow_tree(&self) -> bool { + self.block_flow.contains_roots_of_absolute_flow_tree() + } + + fn is_absolute_containing_block(&self) -> bool { + self.block_flow.is_absolute_containing_block() + } + fn generated_containing_block_size(&self, flow: OpaqueFlow) -> LogicalSize<Au> { self.block_flow.generated_containing_block_size(flow) } |