Turn this enum into an enum class.
Pull request: https://github.com/WebKit/WebKit/pull/14329
Committed 264769@main (d827efd1ab4a): <https://commits.webkit.org/264769@main> Reviewed commits have been landed. Closing PR #14329 and removing active labels.