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.
R=sky
BUG=160158
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167062
Patch Set 1 #Patch Set 2 : Add test #
Total comments: 4
Patch Set 3 : nits #Patch Set 4 : dchecks #Patch Set 5 : impl #Patch Set 6 : negativesizeunittest #Patch Set 7 : fix unit tests that use negative values or NaN #
Messages
Total messages: 15 (0 generated)
|