Add assertions to make sure RenderObject type checks stay accurate.
Pull request: https://github.com/WebKit/WebKit/pull/20085
Committed 270353@main (5f6e0965d1a0): <https://commits.webkit.org/270353@main> Reviewed commits have been landed. Closing PR #20085 and removing active labels.
<rdar://problem/118079133>