Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 11275243: Revert 167062 - ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Revert 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -52 lines) Patch
M cc/draw_quad_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/rect_f.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/rect_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ui/gfx/size.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M ui/gfx/size_base.h View 2 chunks +13 lines, -4 lines 0 comments Download
D ui/gfx/size_base_impl.h View 1 chunk +0 lines, -37 lines 0 comments Download
M ui/gfx/size_f.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/gfx/size_unittest.cc View 3 chunks +18 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 1 (0 generated)
danakj
8 years, 1 month ago (2012-11-10 06:17:30 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698