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:
Emilio Cobos Álvarez 2020-05-27 00:00:52 +00:00
parent a9c88729a8
commit 4cf9aeeaf7
2 changed files with 30 additions and 8 deletions

View file

@ -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.