diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2020-06-03 13:55:11 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2020-06-04 13:19:53 +0200 |
commit | fff5cd51427c62e0696aa44a1a53e8f5152c8610 (patch) | |
tree | e831cd64fc08ebb9cff7ca82fcb8b4565c544a0e /components/layout_2020/flexbox.rs | |
parent | 29005e1626a11cf1fc840998327896297e82d2cc (diff) | |
download | servo-fff5cd51427c62e0696aa44a1a53e8f5152c8610.tar.gz servo-fff5cd51427c62e0696aa44a1a53e8f5152c8610.zip |
Owned `ServoArc<ComputedValues>` in `TraversalHandler`
Diffstat (limited to 'components/layout_2020/flexbox.rs')
-rw-r--r-- | components/layout_2020/flexbox.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout_2020/flexbox.rs b/components/layout_2020/flexbox.rs index 7a7b7414f5d..855f8c68ee5 100644 --- a/components/layout_2020/flexbox.rs +++ b/components/layout_2020/flexbox.rs @@ -80,11 +80,11 @@ where &mut self, node: Node, text: Cow<'dom, str>, - parent_style: &Arc<ComputedValues>, + parent_style: Arc<ComputedValues>, ) { self.contiguous_text_runs.push(TextRun { tag: node.as_opaque(), - parent_style: parent_style.clone(), + parent_style, text: text.into(), }) } @@ -93,7 +93,7 @@ where fn handle_element( &mut self, node: Node, - style: &Arc<ComputedValues>, + style: Arc<ComputedValues>, display: DisplayGeneratingBox, contents: Contents, box_slot: BoxSlot<'dom>, |