mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 01:22:43 +02:00
Every DOM mutation that may affect a :has() selector enqueues an entry in StyleScope keyed by an ancestor node. The entries were previously stored in a Vector and linearly scanned on every insert to deduplicate by node. We now use an OrderedHashMap instead, eliminating the quadratic deduplication.
6.1 KiB
6.1 KiB