|
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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159256
Total comments: 2
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+327 lines, -85 lines) |
Patch |
|
M |
content/browser/renderer_host/backing_store_aura.cc
|
View
|
1
|
5 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/backing_store_mac.mm
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/browser_plugin/browser_plugin_backing_store.cc
|
View
|
1
|
4 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_widget.cc
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/gfx/image/image_skia_operations.cc
|
View
|
1
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gfx/rect.h
|
View
|
1
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/rect_base.h
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
|
A |
ui/gfx/rect_conversions.h
|
View
|
1
2
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/rect_conversions.cc
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/rect_f.h
|
View
|
1
|
3 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/gfx/rect_f.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/gfx/rect_unittest.cc
|
View
|
|
2 chunks |
+155 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/safe_floor_ceil.h
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/safe_floor_ceil.cc
|
View
|
1
2
3
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/size.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/gfx/size_base.h
|
View
|
1
2
|
2 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
|
D |
ui/gfx/size_base_impl.h
|
View
|
1
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
|
M |
ui/gfx/size_f.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/ui.gyp
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|