|
ui: Prefer +/- operators to apply offsets.
Adds +/- operators to gfx::Rect that are applied to its origin Point.
Removes gfx::Point method a.OffsetFrom(b) in favor of (b - a).
Begin use +/- instead of Offset() in ui/gfx/ and cc/
New tests:
ui_unittests:RectTest.Offset
R=pkasting,enne
BUG= 158416
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167012
Total comments: 2
Total comments: 7
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+803 lines, -220 lines) |
Patch |
 |
M |
.gitmodules
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -5 lines |
2 comments
|
Download
|
 |
M |
cc/geometry.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_host_common_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_host_impl.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_host_impl_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/math_util.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/occlusion_tracker_unittest.cc
|
View
|
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
cc/page_scale_animation.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/browser_view.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_manager.h
|
View
|
1
2
3
4
5
|
4 chunks |
+20 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_manager.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+68 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_manager_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+128 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/image_transport_surface.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/gpu/image_transport_surface.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/blit.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/blit.cc
|
View
|
1
|
3 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/canvas_skia.cc
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/pango_util.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/point.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/point_base.h
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/point_f.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/point_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/rect.h
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect.cc
|
View
|
1
2
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_base.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_base_impl.h
|
View
|
|
2 chunks |
+24 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_f.h
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_f.cc
|
View
|
1
2
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+39 lines, -15 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/render_text.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/vector2d_f.h
|
View
|
1
2
3
4
5
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/vector2d_f.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/vector2d_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/vector3d_f.h
|
View
|
1
2
3
4
5
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/vector3d_f.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/vector3d_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+24 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gl/generate_bindings.py
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_surface.h
|
View
|
1
2
3
4
5
|
3 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_surface.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_surface_glx.h
|
View
|
1
2
3
4
5
|
3 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_surface_glx.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+327 lines, -71 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|