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

Issue 13637017: Delete layout_viewport_size. (Closed)

Created:
7 years, 8 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 8 months ago
Reviewers:
jamesr, piman
CC:
chromium-reviews, jonathan.backer, Ian Vollick, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Delete layout_viewport_size. This value is redundant. We can use the root cliprect size or the device_viewport_size divided by device_scale_factor instead. This value was only used by PinchZoomScrollbars, I replaced it with one that should be equivalent. NOTRY=true BUG=229098 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193013

Patch Set 1 #

Patch Set 2 : Fix compile #

Total comments: 6

Patch Set 3 : Address review comments #

Patch Set 4 : Fix Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -157 lines) Patch
M cc/input/pinch_zoom_scrollbar.cc View 1 2 2 chunks +2 lines, -8 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 12 chunks +11 lines, -15 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 5 chunks +26 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 2 chunks +1 line, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 51 chunks +52 lines, -53 lines 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 15 chunks +17 lines, -25 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
aelias_OOO_until_Jul13
PTAL. This leaves some WebKit API dregs but otherwise deletes the value entirely.
7 years, 8 months ago (2013-04-08 22:16:29 UTC) #1
wjmaclean
On 2013/04/08 22:16:29, aelias wrote: > PTAL. > > This leaves some WebKit API dregs ...
7 years, 8 months ago (2013-04-08 22:35:28 UTC) #2
aelias_OOO_until_Jul13
It's not guaranteed to be an integer, but if you ceil it, this will give ...
7 years, 8 months ago (2013-04-08 22:53:59 UTC) #3
aelias_OOO_until_Jul13
Adding jamesr@ and piman@ for OWNERS.
7 years, 8 months ago (2013-04-08 23:13:51 UTC) #4
danakj
LGTM if wjmaclean is okay with the pinch zoom scrollbar changes. https://codereview.chromium.org/13637017/diff/6001/cc/input/pinch_zoom_scrollbar.cc File cc/input/pinch_zoom_scrollbar.cc (right): ...
7 years, 8 months ago (2013-04-09 00:04:35 UTC) #5
jamesr
webkit/ lgtm https://codereview.chromium.org/13637017/diff/6001/webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc File webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc (right): https://codereview.chromium.org/13637017/diff/6001/webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc#newcode79 webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc:79: const WebSize&, chromium style is to keep ...
7 years, 8 months ago (2013-04-09 00:11:51 UTC) #6
piman
https://codereview.chromium.org/13637017/diff/6001/content/renderer/gpu/render_widget_compositor.h File content/renderer/gpu/render_widget_compositor.h (right): https://codereview.chromium.org/13637017/diff/6001/content/renderer/gpu/render_widget_compositor.h#newcode48 content/renderer/gpu/render_widget_compositor.h:48: const WebKit::WebSize&, nit: in chromium code we don't generally ...
7 years, 8 months ago (2013-04-09 00:20:45 UTC) #7
aelias_OOO_until_Jul13
Antoine: did you forget to lgt m?
7 years, 8 months ago (2013-04-09 00:26:10 UTC) #8
piman
On 2013/04/09 00:26:10, aelias wrote: > Antoine: did you forget to lgt m? Ah, sorry, ...
7 years, 8 months ago (2013-04-09 00:39:28 UTC) #9
aelias_OOO_until_Jul13
OK, I merged all duplicative code into a new method LayerTreeHost::PinchZoomScrollbarSize and named the unused ...
7 years, 8 months ago (2013-04-09 01:18:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/13637017/21001
7 years, 8 months ago (2013-04-09 04:58:17 UTC) #11
commit-bot: I haz the power
7 years, 8 months ago (2013-04-09 04:58:41 UTC) #12
Message was sent while issue was closed.
Change committed as 193013

Powered by Google App Engine
This is Rietveld 408576698