mirror of
https://github.com/servo/servo.git
synced 2025-06-11 10:00:18 +00:00
layout: prevent an extra arc clone for selected_style
This commit is contained in:
parent
92f39ea5cf
commit
5303048c06
1 changed files with 2 additions and 2 deletions
|
@ -717,7 +717,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
|
|||
let mut style = (*style).clone();
|
||||
properties::modify_style_for_text(&mut style);
|
||||
|
||||
let selected_style = node.selected_style().clone();
|
||||
let selected_style = node.selected_style();
|
||||
|
||||
match text_content {
|
||||
TextContent::Text(string) => {
|
||||
|
@ -727,7 +727,7 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
|
|||
node.opaque(),
|
||||
node.get_pseudo_element_type().strip(),
|
||||
style,
|
||||
selected_style,
|
||||
selected_style.clone(),
|
||||
node.restyle_damage(),
|
||||
specific_fragment_info))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue