Update implementation of contain flag for motion path <ray>
<rdar://problem/108861663>
Pull request: https://github.com/WebKit/WebKit/pull/13415
Committed 265106@main (7e2067011122): <https://commits.webkit.org/265106@main> Reviewed commits have been landed. Closing PR #13415 and removing active labels.