Fixes cases where we incorrectly convert from RectF to Rect by flooring. In all cases...
commita25e25b907d387f0b76a2b8acd522193e777e793
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 28 Sep 2012 14:32:37 +0000 (28 14:32 +0000)
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 28 Sep 2012 14:32:37 +0000 (28 14:32 +0000)
tree814155246ef7d0c458ad384723d940273a63fca6
parent34b8066f9385db4ce27b26e96d7a718f4c259053
Fixes cases where we incorrectly convert from RectF to Rect by flooring. In all cases we should be taking the enclosing or enclosed int rect as appropriate.

This mainly affects bits of code using the old Rect Rect::Scale(float) function. There are, thankfully, not too many. I've replaced this legacy function with Rect Rect::ScaleUnsafe(float) and when this lands, I will open a bug for switching from ScaleUnsafe to a Scale followed by a ToEnclosedRect or ToEnclosingRect.

BUG=152596

Review URL: https://chromiumcodereview.appspot.com/10996037

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159256 0039d316-1c4b-4281-b951-d872f2087c98
21 files changed:
content/browser/renderer_host/backing_store_aura.cc
content/browser/renderer_host/backing_store_mac.mm
content/browser/renderer_host/render_widget_host_view_mac.mm
content/renderer/browser_plugin/browser_plugin_backing_store.cc
content/renderer/render_widget.cc
ui/gfx/image/image_skia_operations.cc
ui/gfx/rect.h
ui/gfx/rect_base.h
ui/gfx/rect_conversions.cc [new file with mode: 0644]
ui/gfx/rect_conversions.h [new file with mode: 0644]
ui/gfx/rect_f.cc
ui/gfx/rect_f.h
ui/gfx/rect_unittest.cc
ui/gfx/safe_floor_ceil.cc [new file with mode: 0644]
ui/gfx/safe_floor_ceil.h [new file with mode: 0644]
ui/gfx/size.cc
ui/gfx/size_base.h
ui/gfx/size_base_impl.h [deleted file]
ui/gfx/size_f.cc
ui/ui.gyp
webkit/plugins/ppapi/ppapi_plugin_instance.cc