mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Manually tweak inlining in stateless pseudo selector matching.
This addresses a minor regression in bloom-matching.html. The common case here is that there's no selector to the right of the pseudo-element, so keep that path inline, while keeping all other checks out of line. Differential Revision: https://phabricator.services.mozilla.com/D76793
This commit is contained in:
parent
a9c88729a8
commit
4cf9aeeaf7
2 changed files with 30 additions and 8 deletions
|
@ -322,13 +322,8 @@ where
|
|||
},
|
||||
}
|
||||
|
||||
for component in &mut iter {
|
||||
// The only other parser-allowed Components in this sequence are
|
||||
// state pseudo-classes, or one of the other things that can contain
|
||||
// them.
|
||||
if !component.matches_for_stateless_pseudo_element() {
|
||||
return false;
|
||||
}
|
||||
if !iter.matches_for_stateless_pseudo_element() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Advance to the non-pseudo-element part of the selector.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue