|
Remove implicit flooring Scale() method from Point and Size.
When scaling an integer point or size, return a floating point
result. Implicitly flooring hides design problems and bugs. Add
conversion functions to floor or ceil a SizeF or PointF
into an integer format again.
All existing behaviour has been preserved by replacing uses of
foo.Scale() with ToFlooredFoo(foo.Scale()).
R=sky
BUG= 147395
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160970
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+250 lines, -94 lines) |
Patch |
 |
M |
ash/display/multi_display_manager.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/touch/touch_uma.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/status/network_menu_icon.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_icon_image.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/render_widget_snapshot_taker.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/thumbnail_tab_helper.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/backing_store_aura.cc
|
View
|
1
|
5 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/backing_store_mac.mm
|
View
|
1
2
|
4 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositing_iosurface_mac.mm
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/dip_util.cc
|
View
|
1
|
2 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_manager_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_backing_store.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget_fullscreen_pepper.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/aura/root_window.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/base/resource/resource_bundle.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/base/x/x11_util.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/dip_util.cc
|
View
|
|
2 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/canvas.cc
|
View
|
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/display.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/image/image_skia_operations.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/point.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/point_base.h
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/point_conversions.h
|
View
|
1
2
3
4
5
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/point_conversions.cc
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/point_f.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/shadow_value.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/size.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/size_base.h
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/size_conversions.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/size_conversions.cc
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/size_f.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui.gyp
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webcursor_aurax11.cc
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
|
View
|
1
2
3
4
|
4 chunks |
+11 lines, -16 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|