mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
Before this change, we did the following: 1. Created a bitmap with the matching state for each rule containing `:hover`. 2. Changed the actively hovered element in the document. 3. Created another bitmap with the matching state for each rule containing `:hover`. With this change, we iterate rule by rule and compare the matching state. This allows us to break early once we find the first rule whose matching state changes after the hovered element update. Additionally, this removes the need to allocate a bitmap.
270 KiB
270 KiB