Pull logic for clamping corner rounding radii out of `Corners::to_pixels` (#27460)

This seems more correct as corners are not necessarily only for rounding
radii.

Also applies clamping after scaling in `paint_quad`, deduplicating that
logic. This also provides a more precise result by doing the clamping
after scaling, avoiding floating point rounding issues (probably a
non-issue).

Release Notes:

- N/A
8c8f50d916Michael Sloan committed on 3/25/2025, 9:56:17 PM· committed by GitHubparent76192ea
4 files changedLine totals unavailable