mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Filter :hover selectors early for elements that aren't hovered
Some websites (like vercel.com...) have a *lot* of :hover selectors that we can simply skip for any element that isn't currently hovered.
This commit is contained in:
parent
5bb0f43b90
commit
ef4f5ac8fb
Notes:
github-actions[bot]
2024-09-09 18:13:06 +00:00
Author: https://github.com/awesomekling
Commit: ef4f5ac8fb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1345
4 changed files with 33 additions and 1 deletions
|
@ -92,6 +92,7 @@ struct MatchingRule {
|
|||
CascadeOrigin cascade_origin;
|
||||
bool contains_pseudo_element { false };
|
||||
bool can_use_fast_matches { false };
|
||||
bool must_be_hovered { false };
|
||||
bool skip { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue