Adopt fast character comparison in a few more places in SVG.
Pull request: https://github.com/WebKit/WebKit/pull/24155
Committed 274388@main (1f54053a713e): <https://commits.webkit.org/274388@main> Reviewed commits have been landed. Closing PR #24155 and removing active labels.
<rdar://problem/122668975>