aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-12-03 13:38:55 -0500
committerSimon Sapin <simon.sapin@exyr.org>2019-12-09 09:57:48 +0100
commit6dad51f57032cbf8410fa38a60a5315fd0fc7da9 (patch)
tree08c8d234102de8aa25f5711dcbf2799045db3219 /components/layout
parentf31a88d85de2a7bdee65216b3b66b697b459a31d (diff)
downloadservo-6dad51f57032cbf8410fa38a60a5315fd0fc7da9.tar.gz
servo-6dad51f57032cbf8410fa38a60a5315fd0fc7da9.zip
layout: Ensure truncated fragment is updated with results of collecting inner fragment's stacking contexts.
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/display_list/builder.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs
index 4fd1b4b3988..0eceb02abdb 100644
--- a/components/layout/display_list/builder.rs
+++ b/components/layout/display_list/builder.rs
@@ -606,9 +606,15 @@ impl Fragment {
true
},
// FIXME: In the future, if #15144 is fixed we can remove this case. See #18510.
- SpecificFragmentInfo::TruncatedFragment(ref mut info) => info
- .full
- .collect_stacking_contexts_for_blocklike_fragment(state),
+ SpecificFragmentInfo::TruncatedFragment(ref mut info) => {
+ let _ = info
+ .full
+ .collect_stacking_contexts_for_blocklike_fragment(state);
+ // To ensure the caller updates this fragment's stacking context
+ // appropriately based on the un-truncated fragment's status,
+ // we don't pass on the result of collecting stacking contexts.
+ false
+ },
_ => false,
}
}