mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Owned ServoArc<ComputedValues>
in TraversalHandler
This commit is contained in:
parent
29005e1626
commit
fff5cd5142
3 changed files with 19 additions and 29 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue