Use invalidated rects to clip widget rendering