DescriptionRemove some implicit Point to PointF conversions, add helpers.
This adds gfx::ScaleTo{Floored,Ceiled,Rounded}Point() helpers
similar to those that exist for Rect and Size. It uses those
helpers to scale integer points to integer points, and avoid
implicit conversions to PointFs in the calling code.
Also removes some implicit conversions to PointF with
ui::SelectionBounds.
R=sadrul, sky
BUG=342848
Committed: https://crrev.com/34a8990806a42ee9356ce5b2f932057169c03a90
Cr-Commit-Position: refs/heads/master@{#355451}
Patch Set 1 #Patch Set 2 : pointfconvert-views: . #Patch Set 3 : pointfconvert-views: . #Patch Set 4 : pointfconvert-views: . #Patch Set 5 : pointfconvert-views: . #Patch Set 6 : pointfconvert-views: extrachange #
Total comments: 2
Messages
Total messages: 11 (3 generated)
|