mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55: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
|
@ -428,7 +428,7 @@ where
|
|||
|
||||
// Compute the primary rule node.
|
||||
stylist.push_applicable_declarations(
|
||||
&self.element,
|
||||
self.element,
|
||||
implemented_pseudo.as_ref(),
|
||||
self.element.style_attribute(),
|
||||
self.element.get_smil_override(),
|
||||
|
@ -502,7 +502,7 @@ where
|
|||
// NB: We handle animation rules for ::before and ::after when
|
||||
// traversing them.
|
||||
stylist.push_applicable_declarations(
|
||||
&self.element,
|
||||
self.element,
|
||||
Some(pseudo_element),
|
||||
None,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue