WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
286721
[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
Add attachment
proposed patch, testcase, etc.
Matthieu Dubet
Comment 1
2025-01-29 17:26:32 PST
rdar://138419832
Matthieu Dubet
Comment 2
2025-01-29 17:31:16 PST
Pull request:
https://github.com/WebKit/WebKit/pull/39737
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.
Top of Page
Format For Printing
XML
Clone This Bug