mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
Before this change, we'd stop collecting must-be-present identifiers from the selector once we crossed a combinator that wasn't ' ' or '>'. However, we can simply skip over sibling combinators and continue collecting ancestor identifiers on the "other side" of them, since siblings always have a shared parent. This allows us to use the ancestor filter to quickly reject more selectors. It also fixes a harmless bug where we believed the ancestor filter to be useful while there were 0 ancestor hashes in the selector.
41 KiB
41 KiB