Adopt Rect::contains in compositor hit-testing

This does make hit-testing inclusive in the right/bottom edges, whereas it was only inclusive in the top/left edges before.