| 100 | } |
| 101 | |
| 102 | static Rect makeViewFrame(const Valdi::Frame& frame, Scalar displayScale) { |
| 103 | auto x = Valdi::roundToPixelGrid(frame.x, displayScale); |
| 104 | auto y = Valdi::roundToPixelGrid(frame.y, displayScale); |
| 105 | auto width = Valdi::roundToPixelGrid(frame.width, displayScale); |
| 106 | auto height = Valdi::roundToPixelGrid(frame.height, displayScale); |
| 107 | |
| 108 | return Rect::makeXYWH(x, y, width, height); |
| 109 | } |
| 110 | |
| 111 | void SnapDrawingViewTransaction::setViewFrame(const Ref<View>& view, |
| 112 | const Frame& newFrame, |
no test coverage detected