Clean up enable_ifs using `if constexpr`
Pull request: https://github.com/WebKit/WebKit/pull/7009
Committed 257273@main (21e76d2cd345): <https://commits.webkit.org/257273@main> Reviewed commits have been landed. Closing PR #7009 and removing active labels.
<rdar://problem/102893178>