Fix build errors associated with disabling ORIENTATION_EVENTS
<rdar://problem/99450478>
Pull request: https://github.com/WebKit/WebKit/pull/5062
Committed 255203@main (7a78039d6da3): <https://commits.webkit.org/255203@main> Reviewed commits have been landed. Closing PR #5062 and removing active labels.