Bug 286721
| Summary: | [Style] Early return if possible when doing style matching | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthieu Dubet <m_dubet> |
| Component: | New Bugs | Assignee: | 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
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
rdar://138419832
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/39737
EWS
Committed 289611@main (ce251e4c49e1): <https://commits.webkit.org/289611@main>
Reviewed commits have been landed. Closing PR #39737 and removing active labels.