DescriptionRevert 167062 - ui: 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
Review URL: https://codereview.chromium.org/11365160
TBR=danakj@chromium.org
Apparently there are now Aura unit tests that rely on negative sizes:
http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20Aura&number=24205
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167066
Patch Set 1 #
Messages
Total messages: 1 (0 generated)
|