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

Issue 11235017: Revert to old rect conversion behavior (Closed)

Created:
8 years, 2 months ago by Ian Vollick
Modified:
8 years, 1 month ago
Reviewers:
danakj, jamesr, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, rsesek+watch_chromium.org, jam, cc-bugs_chromium.org, jbauman
Visibility:
Public.

Description

Revert to old rect conversion behavior With https://chromiumcodereview.appspot.com/10996037, some rect conversion behaviors changed and regressions were introduced. To ensure that no more appear, this CL reverts the behavior changes introduced by the previous patch. The old behavior was to convert from RectF to Rect by flooring the position and size. Ideally, this old behavior would not appear in the public API to discourage its use, but the legacy behavior is required in enough places that it seems worse to duplicate the ToFlooredRect function at each call site. Instead, I've named the function ToFlooredRectDeprecated to discourage its use in new code. I've included unit tests to ensure that this function replicates the old behavior. BUG=None TEST=RectTest.ToFlooredRect Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164383

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -17 lines) Patch
M content/browser/renderer_host/backing_store_mac.mm View 1 2 3 chunks +3 lines, -14 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_backing_store.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/image/image_skia_operations.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/rect_conversions.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/rect_conversions.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gfx/rect_unittest.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Ian Vollick
8 years, 2 months ago (2012-10-20 04:30:50 UTC) #1
sky
https://codereview.chromium.org/11235017/diff/9/ui/gfx/rect_conversions.h File ui/gfx/rect_conversions.h (right): https://codereview.chromium.org/11235017/diff/9/ui/gfx/rect_conversions.h#newcode21 ui/gfx/rect_conversions.h:21: UI_EXPORT Rect ToFlooredRectDeprecated(const RectF& rect); If we're going to ...
8 years, 2 months ago (2012-10-22 15:08:37 UTC) #2
Ian Vollick
On 2012/10/22 15:08:37, sky wrote: > https://codereview.chromium.org/11235017/diff/9/ui/gfx/rect_conversions.h > File ui/gfx/rect_conversions.h (right): > > https://codereview.chromium.org/11235017/diff/9/ui/gfx/rect_conversions.h#newcode21 > ...
8 years, 2 months ago (2012-10-22 15:13:43 UTC) #3
danakj
https://codereview.chromium.org/11235017/diff/9/ui/gfx/rect_conversions.h File ui/gfx/rect_conversions.h (right): https://codereview.chromium.org/11235017/diff/9/ui/gfx/rect_conversions.h#newcode21 ui/gfx/rect_conversions.h:21: UI_EXPORT Rect ToFlooredRectDeprecated(const RectF& rect); On 2012/10/22 15:08:37, sky ...
8 years, 2 months ago (2012-10-22 15:13:46 UTC) #4
sky
As long as the plan is for these to be removed, LGTM
8 years, 2 months ago (2012-10-22 15:44:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11235017/9
8 years, 2 months ago (2012-10-22 19:56:05 UTC) #6
commit-bot: I haz the power
Presubmit check for 11235017-9 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-22 19:56:10 UTC) #7
jamesr
lgtm
8 years, 2 months ago (2012-10-22 19:57:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11235017/9
8 years, 2 months ago (2012-10-22 20:54:59 UTC) #9
commit-bot: I haz the power
Retried try job too often for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chrome_frame_net_tests, chrome_frame_unittests, content_browsertests, content_unittests, ...
8 years, 2 months ago (2012-10-24 13:22:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11235017/9
8 years, 1 month ago (2012-10-26 13:33:11 UTC) #11
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/backing_store_mac.mm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-10-26 13:33:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11235017/20001
8 years, 1 month ago (2012-10-26 13:56:44 UTC) #13
commit-bot: I haz the power
8 years, 1 month ago (2012-10-26 19:48:45 UTC) #14
Change committed as 164383

Powered by Google App Engine
This is Rietveld 408576698