Use enum for clarity.
Pull request: https://github.com/WebKit/WebKit/pull/16430
Committed 266630@main (5e90e4cac5a2): <https://commits.webkit.org/266630@main> Reviewed commits have been landed. Closing PR #16430 and removing active labels.
<rdar://problem/113476645>