mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Remove some unneeded indirection.
All TElement's implement Copy, and are just pointers, so the double indirection is stupid. I'm going to try to see if removing this double-indirection fixes some selector-matching performance, and this is a trivial pre-requisite while I wait for Talos results.
This commit is contained in:
parent
bfc91c5e12
commit
8f6455b9df
5 changed files with 37 additions and 40 deletions
|
@ -2260,17 +2260,16 @@ fn get_pseudo_style(
|
|||
};
|
||||
let guards = StylesheetGuards::same(guard);
|
||||
let metrics = get_metrics_provider_for_product();
|
||||
doc_data.stylist
|
||||
.lazily_compute_pseudo_element_style(
|
||||
&guards,
|
||||
&element,
|
||||
&pseudo,
|
||||
rule_inclusion,
|
||||
base,
|
||||
is_probe,
|
||||
&metrics,
|
||||
matching_func,
|
||||
)
|
||||
doc_data.stylist.lazily_compute_pseudo_element_style(
|
||||
&guards,
|
||||
element,
|
||||
&pseudo,
|
||||
rule_inclusion,
|
||||
base,
|
||||
is_probe,
|
||||
&metrics,
|
||||
matching_func,
|
||||
)
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue