| 899 | } |
| 900 | |
| 901 | Point Layer::convertPointToParent(const Point& point) { |
| 902 | // TODO(simon): Take in account rotation |
| 903 | |
| 904 | if (_hasScale) { |
| 905 | auto convertedPoint = Point::make(point.x * _scaleX, point.y * _scaleY); |
| 906 | |
| 907 | auto offset = getOffsetInParent(); |
| 908 | return convertedPoint.makeOffset(offset.x, offset.y); |
| 909 | } else { |
| 910 | return point.makeOffset(_frame.left + _translation.width, _frame.top + _translation.height); |
| 911 | } |
| 912 | } |
| 913 | |
| 914 | void Layer::setVisualFrameDirty() { |
| 915 | _visualFrameDirty = true; |
nothing calls this directly
no test coverage detected