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

Issue 11958004: Make new-style page scale work on Android. (Closed)

Created:
7 years, 11 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, James Su, trchen, Xianzhu, cjhopman, jamesr
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make new-style page scale work on Android. - Fix CC's PinchZoomViewport and MaxScrollOffset logic to work in fixed layout mode. Root layer max scroll offset is based on WebKit-perceived outer viewport and therefore should logically use layout_viewport_size_, whereas the inner one is the true user-visible viewport and therefore should use device_viewport_size_. - Fix Android to send down viewport size in DIP when --enable-css-transform-pinch is not specified. Default to non-CSS-transform mode when in impl-side painting. - Make ContentSize() return bounds() instead of contentBounds() and rename to ScrollableSize for clarity. This lets us avoid coordinate space conversions when computing max scroll offset. BUG=152505 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177896

Patch Set 1 #

Patch Set 2 : Delete maxScrollOffsetChangedByDeviceScaleFactor test #

Total comments: 22

Patch Set 3 : Apply code review comments #

Patch Set 4 : Rebase to 177494 #

Total comments: 1

Patch Set 5 : 80-col limit #

Total comments: 3

Patch Set 6 : Fix indent #

Patch Set 7 : Rebase to 177564 #

Patch Set 8 : Rebase to 177877 #

Patch Set 9 : Change back ScrollableSize boudns #

Patch Set 10 : Change back ScrollableSize bounds again #

Patch Set 11 : Rebase to 177880 #

Patch Set 12 : Rebase to 177887 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -67 lines) Patch
M cc/layer_tree_host_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -12 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -17 lines 0 comments Download
M cc/layer_tree_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -19 lines 0 comments Download
M cc/pinch_zoom_viewport.h View 1 2 3 chunks +11 lines, -3 lines 0 comments Download
M cc/pinch_zoom_viewport.cc View 1 2 3 4 1 chunk +7 lines, -6 lines 0 comments Download
M content/browser/android/content_startup_flags.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 5 chunks +13 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/screen_android.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
aelias_OOO_until_Jul13
PTAL. WebKit-side of this change at: https://bugs.webkit.org/show_bug.cgi?id=106951
7 years, 11 months ago (2013-01-15 23:55:50 UTC) #1
aelias_OOO_until_Jul13
Dana, could you review this change? We'd like to land it ASAP to unblock more ...
7 years, 11 months ago (2013-01-17 00:21:02 UTC) #2
danakj
I like the approach, but I think there's some inconsistency introduced here with old code ...
7 years, 11 months ago (2013-01-17 18:02:48 UTC) #3
wjmaclean
Generally LGTM, once Dana's logical/physical pixel issues are resolved ... they do make it a ...
7 years, 11 months ago (2013-01-17 19:45:51 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/11958004/diff/3001/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/11958004/diff/3001/cc/layer_tree_host_impl.cc#newcode257 cc/layer_tree_host_impl.cc:257: gfx::SizeF scaledContentSize = activeTree()->ScrollableSize(); On 2013/01/17 18:02:49, danakj wrote: ...
7 years, 11 months ago (2013-01-17 19:59:45 UTC) #5
danakj
cc/ LGTM. exciting! https://codereview.chromium.org/11958004/diff/12001/cc/pinch_zoom_viewport.cc File cc/pinch_zoom_viewport.cc (right): https://codereview.chromium.org/11958004/diff/12001/cc/pinch_zoom_viewport.cc#newcode55 cc/pinch_zoom_viewport.cc:55: device_viewport_size_, 1 / (device_scale_factor_ * total_page_scale_factor())); ...
7 years, 11 months ago (2013-01-17 23:30:36 UTC) #6
no sievers
lgtm for android-specific files https://codereview.chromium.org/11958004/diff/16001/content/browser/android/content_startup_flags.cc File content/browser/android/content_startup_flags.cc (right): https://codereview.chromium.org/11958004/diff/16001/content/browser/android/content_startup_flags.cc#newcode60 content/browser/android/content_startup_flags.cc:60: parsed_command_line->AppendSwitch(switches::kEnablePinch); kEnablePinch would not conflict ...
7 years, 11 months ago (2013-01-18 00:21:18 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/11958004/diff/16001/content/browser/android/content_startup_flags.cc File content/browser/android/content_startup_flags.cc (right): https://codereview.chromium.org/11958004/diff/16001/content/browser/android/content_startup_flags.cc#newcode60 content/browser/android/content_startup_flags.cc:60: parsed_command_line->AppendSwitch(switches::kEnablePinch); On 2013/01/18 00:21:19, Daniel Sievers wrote: > kEnablePinch ...
7 years, 11 months ago (2013-01-18 00:33:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/20001
7 years, 11 months ago (2013-01-18 00:35:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/27003
7 years, 11 months ago (2013-01-18 22:50:08 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-18 23:18:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/27003
7 years, 11 months ago (2013-01-19 00:27:04 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-19 00:38:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/27003
7 years, 11 months ago (2013-01-20 03:49:22 UTC) #14
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-20 03:49:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/36001
7 years, 11 months ago (2013-01-20 10:07:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/42001
7 years, 11 months ago (2013-01-20 10:38:23 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=75953
7 years, 11 months ago (2013-01-20 12:46:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/42001
7 years, 11 months ago (2013-01-20 16:14:50 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=75964
7 years, 11 months ago (2013-01-20 18:42:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/42001
7 years, 11 months ago (2013-01-20 20:53:42 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=75973
7 years, 11 months ago (2013-01-20 22:50:19 UTC) #22
aelias_OOO_until_Jul13
Landing with NOTRY as every test has gone green at least once.
7 years, 11 months ago (2013-01-21 07:54:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/11958004/42007
7 years, 11 months ago (2013-01-21 07:54:34 UTC) #24
commit-bot: I haz the power
7 years, 11 months ago (2013-01-21 07:54:56 UTC) #25
Message was sent while issue was closed.
Change committed as 177896

Powered by Google App Engine
This is Rietveld 408576698