Properly intersect the shape with clipRect
That for loop in the end didn't have any effect, actually compute the final region and return that one
That for loop in the end didn't have any effect, actually compute the final region and return that one