aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/construct.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-03-14 10:58:00 +0100
committerGitHub <noreply@github.com>2024-03-14 09:58:00 +0000
commit0e78c8114b2a43df04d75dc1decf01e06992262f (patch)
tree919d2f98f3b2cb2a3e89f3268a1c82309c16f898 /components/layout_2020/flow/construct.rs
parent871a9bf677525293d6a3ac46b55660aaee02281b (diff)
downloadservo-0e78c8114b2a43df04d75dc1decf01e06992262f.tar.gz
servo-0e78c8114b2a43df04d75dc1decf01e06992262f.zip
Allow finishing anonymous inline-table at the end of inline elements (#31650)
This avoids inserting it outside of its parent.
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r--components/layout_2020/flow/construct.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 0c8982cb005..d61804751b0 100644
--- a/components/layout_2020/flow/construct.rs
+++ b/components/layout_2020/flow/construct.rs
@@ -487,6 +487,8 @@ where
.unwrap()
.traverse(self.context, info, self);
+ self.finish_anonymous_table_if_needed();
+
let mut inline_box = self
.ongoing_inline_boxes_stack
.pop()