Bug 286721

Summary: [Style] Early return if possible when doing style matching
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: New BugsAssignee: Matthieu Dubet <m_dubet>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.