servo/components/style/sharing
Emilio Cobos Álvarez 4878422c93 style: Simplify selector flags setup even more
In my investigation for bug 1766439, I am digging into why selector
matching regressed.

It doesn't help that the selector-matching code is instantiated a
gazillion times (so there's a ton of copies of the relevant functions).

This was needed in the past because we had different ways of setting the
selector flags on elements, but I unified that recently and now we only
need to either set them or not. That is the kind of thing that
MatchingContext is really good for, so pass that instead on
MatchingContext creation.

Differential Revision: https://phabricator.services.mozilla.com/D145428
2023-08-16 17:46:41 +02:00
..
checks.rs style: Simplify selector flag setting now that flag setting is atomic 2023-08-16 17:46:41 +02:00
mod.rs style: Simplify selector flags setup even more 2023-08-16 17:46:41 +02:00