Adopt Rect::contains in compositor hit-testing