From c08cfbb5f32c81e51588322bc8106eff6776b978 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 19 Sep 2019 09:40:17 +0200 Subject: Cheat the system and use an Arc in BoxSlot Ideally we want to be able to borrow from the DOM during box construction but that's not playing very well at the moment with the current bridge between script and layout. --- components/layout_2020/flow/construct.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/layout_2020/flow/construct.rs') diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs index de590c950d4..559d57752df 100644 --- a/components/layout_2020/flow/construct.rs +++ b/components/layout_2020/flow/construct.rs @@ -178,7 +178,7 @@ impl BlockContainer { } } -impl<'dom, Node> TraversalHandler for BlockContainerBuilder<'dom, '_, Node> +impl<'dom, Node> TraversalHandler<'dom, Node> for BlockContainerBuilder<'dom, '_, Node> where Node: NodeExt<'dom>, { @@ -187,7 +187,7 @@ where style: &Arc, display: DisplayGeneratingBox, contents: Contents, - box_slot: BoxSlot, + box_slot: BoxSlot<'dom>, ) { match display { DisplayGeneratingBox::OutsideInside { outside, inside } => match outside { -- cgit v1.2.3