aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-06-03 13:55:11 +0200
committerSimon Sapin <simon.sapin@exyr.org>2020-06-04 13:19:53 +0200
commitfff5cd51427c62e0696aa44a1a53e8f5152c8610 (patch)
treee831cd64fc08ebb9cff7ca82fcb8b4565c544a0e /components/layout_2020/flexbox.rs
parent29005e1626a11cf1fc840998327896297e82d2cc (diff)
downloadservo-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.rs6
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>,