Update findElementName() to use switch statements instead of many if checks. This is slightly more efficient, especially on iOS.
Pull request: https://github.com/WebKit/WebKit/pull/12571
Committed 262776@main (14dd27cb957b): <https://commits.webkit.org/262776@main> Reviewed commits have been landed. Closing PR #12571 and removing active labels.
<rdar://problem/107840818>