diff options
author | Anthony Ramine <nox@nox.paris> | 2019-09-19 09:40:17 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2019-09-19 11:24:50 +0200 |
commit | c08cfbb5f32c81e51588322bc8106eff6776b978 (patch) | |
tree | f1a8c8baae37c5d4ce00ae17aff7ccb78b00b5cf /components/layout_2020/flow/construct.rs | |
parent | 745857066c7484b654aa6c32edc0c589fe184e2a (diff) | |
download | servo-c08cfbb5f32c81e51588322bc8106eff6776b978.tar.gz servo-c08cfbb5f32c81e51588322bc8106eff6776b978.zip |
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.
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r-- | components/layout_2020/flow/construct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Node> 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<ComputedValues>, display: DisplayGeneratingBox, contents: Contents<Node>, - box_slot: BoxSlot, + box_slot: BoxSlot<'dom>, ) { match display { DisplayGeneratingBox::OutsideInside { outside, inside } => match outside { |