Fixed #5576: Refactor cc.visibleRect
Fixed #5579: -x fix