(newFrame: Rect)
| 111 | } |
| 112 | |
| 113 | setFrame(newFrame: Rect) { |
| 114 | if (!rectEqualToRect(this.frame, newFrame)) { |
| 115 | this.frame = newFrame; |
| 116 | if (sizeIsValid(newFrame.size)) { |
| 117 | this.frame = newFrame; |
| 118 | } else { |
| 119 | this.frame = zeroRect; |
| 120 | } |
| 121 | this.setNeedsDisplay(); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | setVisibleArea(newVisibleArea: Rect) { |
| 126 | if (!rectEqualToRect(this.visibleArea, newVisibleArea)) { |
no test coverage detected