RESOLVED FIXED286721
[Style] Early return if possible when doing style matching
https://bugs.webkit.org/show_bug.cgi?id=286721
Summary [Style] Early return if possible when doing style matching
Matthieu Dubet
Reported 2025-01-29 17:26:18 PST
There are 2 functions matchesAnyAuthorRules() and hasAnyMatchingRules() which only care about "does any of those rule matches". Currently they are collecting all the matching rules, while we could obviously early return at the first matched rule.
Attachments
Matthieu Dubet
Comment 1 2025-01-29 17:26:32 PST
Matthieu Dubet
Comment 2 2025-01-29 17:31:16 PST
EWS
Comment 3 2025-01-31 10:00:06 PST
Committed 289611@main (ce251e4c49e1): <https://commits.webkit.org/289611@main> Reviewed commits have been landed. Closing PR #39737 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.