diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-04-23 19:20:27 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-06-04 01:50:36 +0200 |
commit | 554fc4c6feaf636b231accbd8cc6fc66dbb88711 (patch) | |
tree | 69eed4d47f4b7ccd8203ea6cd085944c408b19dc /components/selectors/parser.rs | |
parent | 2b7fb519ba200ebc471aa5ab3dad3c6c48304386 (diff) | |
download | servo-554fc4c6feaf636b231accbd8cc6fc66dbb88711.tar.gz servo-554fc4c6feaf636b231accbd8cc6fc66dbb88711.zip |
style: Handle disjoint selectors in the selector map.
This way, something like:
*:where(.foo, .bar)
Will end up twice on the selector map, just as if you would've written
.foo, .bar.
But we're a bit careful to not be wasteful, so:
.foo:where(div, span)
Will still end up using the .foo bucket.
It needs a bit of borrow-checker gymnastics to avoid cloning the entry
in the common path. It's a bit gross but not too terrible I think.
Differential Revision: https://phabricator.services.mozilla.com/D71457
Diffstat (limited to 'components/selectors/parser.rs')
0 files changed, 0 insertions, 0 deletions