[webkit-changes] [WebKit/WebKit] 14dd27: Update findElementName() to use switch statements
Chris Dumez
noreply at github.com
Mon Apr 10 10:59:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 14dd27cb957b000290803475debf610d7016c48c
https://github.com/WebKit/WebKit/commit/14dd27cb957b000290803475debf610d7016c48c
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-04-10 (Mon, 10 Apr 2023)
Changed paths:
M Source/WebCore/dom/make_names.pl
Log Message:
-----------
Update findElementName() to use switch statements
https://bugs.webkit.org/show_bug.cgi?id=255225
Reviewed by Ryosuke Niwa.
Update findElementName() to use switch statements instead of many if checks.
This is slightly more efficient, especially on iOS.
* Source/WebCore/dom/make_names.pl:
(generateFindNameForLength):
Canonical link: https://commits.webkit.org/262776@main
More information about the webkit-changes
mailing list