Bug 255225 - Update findElementName() to use switch statements
Summary: Update findElementName() to use switch statements
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-10 07:51 PDT by Chris Dumez
Modified: 2023-04-10 11:00 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2023-04-10 07:51:47 PDT
Update findElementName() to use switch statements instead of many if checks. This is slightly more efficient, especially on iOS.
Comment 1 Chris Dumez 2023-04-10 07:53:04 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12571
Comment 2 EWS 2023-04-10 10:59:02 PDT
Committed 262776@main (14dd27cb957b): <https://commits.webkit.org/262776@main>

Reviewed commits have been landed. Closing PR #12571 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-04-10 11:00:25 PDT
<rdar://problem/107840818>