| 41 | } |
| 42 | |
| 43 | void ContinuousViewModel::setViewportSize(int width, int height) |
| 44 | { |
| 45 | width = std::max(0, width); |
| 46 | height = std::max(0, height); |
| 47 | |
| 48 | if (viewportWidth == width && viewportHeightValue == height) { |
| 49 | return; |
| 50 | } |
| 51 | |
| 52 | viewportWidth = width; |
| 53 | viewportHeightValue = height; |
| 54 | recompute(RecomputePolicy::PreserveViewportAnchor); |
| 55 | } |
| 56 | |
| 57 | void ContinuousViewModel::setScrollYFromUser(int scrollY) |
| 58 | { |
no outgoing calls
no test coverage detected