Owned ServoArc<ComputedValues> in TraversalHandler

This commit is contained in:
Simon Sapin 2020-06-03 13:55:11 +02:00
parent 29005e1626
commit fff5cd5142
3 changed files with 19 additions and 29 deletions

View file

@ -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>,