Descriptionui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always.
This was added with the intention of using Size as a vector, replacing use of
IntSize. Since we have Vector2d now, negative sizes should not exist, so clamp
them in set_width/set_height and the constructor.
Not covered by tests, as we can't test DCHECKs.
TBR=sky
BUG=160158
Relanding: https://codereview.chromium.org/11365160/
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167255
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175535
Patch Set 1 #Patch Set 2 : fix dchecks in gesture code #Patch Set 3 : no negative sizes #
Total comments: 4
Patch Set 4 : point_count=0 #Patch Set 5 : emptybox #Patch Set 6 : dcheck on nan #Patch Set 7 : missedaheight #Patch Set 8 : no-nan-dcheck #Patch Set 9 : Rebase #Patch Set 10 : negative-width #
Messages
Total messages: 26 (0 generated)
|