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

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed)

Created:
4 years, 9 months ago by wjmaclean
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix page zoom to be frame-centric for out-of-process frames. This CL modifies the current methods for setting page zoom from the browser to make them work properly with out-of-process frames. HostZoomMapImpl now routes all zoom-level changes through the WebContents as the latter knows about all the frames associated with the page, regardless of which process/view they are in. This CL also modifies how default page zoom is applied, by having HostZoomMapImpl push the changes through the WebContents instead of propagating them via the RendererPrefs. This should make the code around default zoom levels easier to understand as well. It also avoids changing zoom levels on frames/views embedded in a WebContents with a custom (non-default) zoom level. BUG=528407 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/64951906c6fb59b33a63313f98819bbafe9eebe2 Cr-Commit-Position: refs/heads/master@{#390755}

Patch Set 1 #

Patch Set 2 : Fix some tests. #

Patch Set 3 : Convert temporary zoom to be frame-centric as well. #

Patch Set 4 : Rebase to master@{#383721} #

Patch Set 5 : Early out in UpdateZoomIfNecessary when no committed navigation entry. #

Patch Set 6 : Fix support for default page zoom level. #

Patch Set 7 : Send zoom change notifications for updates triggered by default page zoom changes. #

Total comments: 1

Patch Set 8 : Don't use WeakPtr for PostTask on UI thread. #

Total comments: 46

Patch Set 9 : Fix test. #

Patch Set 10 : Address alexmos@ comments, run two experiments. #

Total comments: 6

Patch Set 11 : Revert one experiment. #

Patch Set 12 : Convert to use PageMsg instead of FrameMsg. #

Total comments: 34

Patch Set 13 : Address alexmos@ comments #

Total comments: 4

Patch Set 14 : Rebase to master@{#386187}. #

Total comments: 16

Patch Set 15 : Address comments, fix test. #

Patch Set 16 : Fix test compile. #

Total comments: 2

Patch Set 17 : Trying 'git add' this time ... #

Patch Set 18 : Modify tests to accommodate window borders on other platforms. #

Patch Set 19 : Revise tests to use constancy of innerWidth for fixed-size iframes. #

Total comments: 18

Patch Set 20 : Add tests, address comments. #

Total comments: 19

Patch Set 21 : Add navigation observer to test. #

Patch Set 22 : Address comments, exclude part of test since not supported on Android. #

Total comments: 21

Patch Set 23 : Address comments. #

Total comments: 6

Patch Set 24 : Insert bug numbers before landing. #

Patch Set 25 : Remove 'anonymous'. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+735 lines, -169 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/renderer_preferences_util.cc View 1 2 3 4 5 3 chunks +0 lines, -23 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/host_zoom_map_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +83 lines, -22 lines 0 comments Download
M content/browser/host_zoom_map_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -3 lines 0 comments Download
A content/browser/iframe_zoom_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +430 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +44 lines, -0 lines 0 comments Download
A content/common/page_message_enums.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M content/common/page_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +3 lines, -14 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/renderer_preferences.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/common/renderer_preferences.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +12 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +0 lines, -54 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +11 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 10 chunks +35 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +26 lines, -20 lines 1 comment Download

Messages

Total messages: 165 (68 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/1
4 years, 9 months ago (2016-03-15 13:54:04 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/130129)
4 years, 9 months ago (2016-03-15 14:23:43 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/20001
4 years, 9 months ago (2016-03-15 21:50:30 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/195699)
4 years, 9 months ago (2016-03-15 22:50:03 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/40001
4 years, 9 months ago (2016-03-16 19:01:07 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/182269) mac_chromium_rel_ng on ...
4 years, 9 months ago (2016-03-16 20:07:35 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/80001
4 years, 8 months ago (2016-03-29 16:51:48 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/123609) win_chromium_x64_rel_ng on ...
4 years, 8 months ago (2016-03-29 17:41:49 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/100001
4 years, 8 months ago (2016-03-31 13:37:25 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/137260)
4 years, 8 months ago (2016-03-31 14:01:52 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/120001
4 years, 8 months ago (2016-03-31 20:13:21 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/137576)
4 years, 8 months ago (2016-03-31 20:38:17 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/140001
4 years, 8 months ago (2016-04-01 14:24:57 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/190872)
4 years, 8 months ago (2016-04-01 15:16:22 UTC) #30
wjmaclean
creis@ - could you take an initial look at this? I'm still trying to understand ...
4 years, 8 months ago (2016-04-01 18:02:03 UTC) #33
Charlie Reis
I'm happy to see this CL! I'm going to be a bit slow for the ...
4 years, 8 months ago (2016-04-01 19:54:29 UTC) #35
ncarter (slow)
Alex and I will review this.
4 years, 8 months ago (2016-04-04 16:32:19 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/160001
4 years, 8 months ago (2016-04-05 16:17:04 UTC) #39
wjmaclean
+thestig@ for renderer_preferences_util.cc +kenrb@ for *_messages.h
4 years, 8 months ago (2016-04-05 16:19:54 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-05 17:25:24 UTC) #43
alexmos
Thanks James, some initial comments below. Sorry for the delay -- I had to ramp ...
4 years, 8 months ago (2016-04-05 18:00:54 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/180001
4 years, 8 months ago (2016-04-05 20:20:39 UTC) #46
wjmaclean
Hi Alex, I've updated based on your comments ... I'm also including two experiments (sending ...
4 years, 8 months ago (2016-04-05 20:22:01 UTC) #47
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/191583)
4 years, 8 months ago (2016-04-05 21:44:29 UTC) #49
wjmaclean
As a follow on to my comments above, I've been thinking about the call to ...
4 years, 8 months ago (2016-04-05 21:44:30 UTC) #50
alexmos
On 2016/04/05 21:44:30, wjmaclean wrote: > As a follow on to my comments above, I've ...
4 years, 8 months ago (2016-04-07 00:43:28 UTC) #51
alexmos
https://codereview.chromium.org/1804023002/diff/140001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/1804023002/diff/140001/content/browser/host_zoom_map_impl.cc#newcode287 content/browser/host_zoom_map_impl.cc:287: // First, remove all entries that match the new ...
4 years, 8 months ago (2016-04-07 01:20:57 UTC) #52
wjmaclean
On 2016/04/07 00:43:28, alexmos wrote: > > messages. One approach might be to modify setPageAndTextZoomFactors ...
4 years, 8 months ago (2016-04-07 12:40:09 UTC) #53
wjmaclean
I'm close to having a revised version ready (sorting out an ugly sync issue), but ...
4 years, 8 months ago (2016-04-07 12:55:36 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/220001
4 years, 8 months ago (2016-04-07 17:13:59 UTC) #57
wjmaclean
pdr@ - Could you please look at the Blink changes? alexmos@ - I've converted it ...
4 years, 8 months ago (2016-04-07 17:15:11 UTC) #60
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/142387)
4 years, 8 months ago (2016-04-07 18:07:26 UTC) #62
wjmaclean
bokan@ - Would you please look at the WebViewImpl changes?
4 years, 8 months ago (2016-04-07 21:54:47 UTC) #65
bokan
WebViewImpl lgtm! (% ASSERT->DCHECK) https://codereview.chromium.org/1804023002/diff/220001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1804023002/diff/220001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3061 third_party/WebKit/Source/web/WebViewImpl.cpp:3061: ASSERT(frame->isLocalRoot()); Blink recently switched ASSERTs ...
4 years, 8 months ago (2016-04-07 22:57:13 UTC) #66
alexmos
Another round of comments below, most important one is the last one about a potential ...
4 years, 8 months ago (2016-04-07 23:48:08 UTC) #67
wjmaclean
https://codereview.chromium.org/1804023002/diff/220001/content/browser/host_zoom_map_impl_browsertest.cc File content/browser/host_zoom_map_impl_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/220001/content/browser/host_zoom_map_impl_browsertest.cc#newcode79 content/browser/host_zoom_map_impl_browsertest.cc:79: GetZoomForView_HostAndScheme) { On 2016/04/07 23:48:08, alexmos (OOO until Apr ...
4 years, 8 months ago (2016-04-08 20:13:30 UTC) #69
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/240001
4 years, 8 months ago (2016-04-08 20:13:42 UTC) #70
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/16483) ios_rel_device_gn on ...
4 years, 8 months ago (2016-04-08 20:16:25 UTC) #72
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/260001
4 years, 8 months ago (2016-04-08 21:22:43 UTC) #74
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/143296)
4 years, 8 months ago (2016-04-08 23:09:27 UTC) #76
ncarter (slow)
Other than "this needs tests" I don't have any qualms with the the overall approach ...
4 years, 8 months ago (2016-04-11 22:17:03 UTC) #77
alexmos
A couple more nits, but overall this is looking good. Thanks for all the work ...
4 years, 8 months ago (2016-04-11 23:19:11 UTC) #78
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/280001
4 years, 8 months ago (2016-04-13 18:43:08 UTC) #80
wjmaclean
alexmos@ - Comments addressed, but no need to review this patch (it's primarily to run ...
4 years, 8 months ago (2016-04-13 18:47:48 UTC) #81
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/211891) mac_chromium_gn_rel on ...
4 years, 8 months ago (2016-04-13 18:59:32 UTC) #83
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/300001
4 years, 8 months ago (2016-04-14 13:31:29 UTC) #85
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/211186)
4 years, 8 months ago (2016-04-14 14:18:24 UTC) #87
kenrb
No issues with the ipc messages, but I have a comment on the Blink changes. ...
4 years, 8 months ago (2016-04-14 18:19:52 UTC) #88
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/320001
4 years, 8 months ago (2016-04-15 20:42:38 UTC) #90
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/188894) mac_chromium_rel_ng on ...
4 years, 8 months ago (2016-04-15 20:54:23 UTC) #92
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/340001
4 years, 8 months ago (2016-04-15 21:11:14 UTC) #94
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/145748)
4 years, 8 months ago (2016-04-15 21:40:16 UTC) #97
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/360001
4 years, 8 months ago (2016-04-18 18:21:37 UTC) #99
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/55602)
4 years, 8 months ago (2016-04-18 20:49:50 UTC) #101
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/380001
4 years, 8 months ago (2016-04-20 15:40:18 UTC) #103
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/57059)
4 years, 8 months ago (2016-04-20 16:50:11 UTC) #105
wjmaclean
alexmos@ - could you please take a look at the current state of the new ...
4 years, 8 months ago (2016-04-20 18:51:10 UTC) #106
wjmaclean
On 2016/04/20 at 18:51:10, wjmaclean wrote: > alexmos@ - could you please take a look ...
4 years, 8 months ago (2016-04-20 18:52:00 UTC) #107
alexmos
Thanks! A couple of questions on the tests below and a few nits. https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc File ...
4 years, 8 months ago (2016-04-21 17:35:35 UTC) #108
wjmaclean
alexmos@ - please see my replies to your major comments below, and let me know ...
4 years, 8 months ago (2016-04-21 17:59:35 UTC) #109
alexmos
https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc File content/browser/iframe_zoom_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc#newcode127 content/browser/iframe_zoom_browsertest.cc:127: resized = std::abs(expected_inner_width - inner_width) < tolerance; On 2016/04/21 ...
4 years, 8 months ago (2016-04-21 19:02:41 UTC) #110
alexmos
https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc File content/browser/iframe_zoom_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc#newcode127 content/browser/iframe_zoom_browsertest.cc:127: resized = std::abs(expected_inner_width - inner_width) < tolerance; Also, maybe ...
4 years, 8 months ago (2016-04-21 19:08:45 UTC) #111
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/400001
4 years, 8 months ago (2016-04-22 19:55:48 UTC) #113
wjmaclean
https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc File content/browser/iframe_zoom_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/380001/content/browser/iframe_zoom_browsertest.cc#newcode83 content/browser/iframe_zoom_browsertest.cc:83: auto subframe1 = root->child_at(0)->current_frame_host(); \ On 2016/04/21 at 17:35:35, ...
4 years, 8 months ago (2016-04-22 19:57:02 UTC) #114
alexmos
Thanks for the new tests! A few more minor comments, but overall I think this ...
4 years, 8 months ago (2016-04-25 22:43:27 UTC) #117
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/500001
4 years, 7 months ago (2016-04-27 13:43:19 UTC) #120
wjmaclean
Comments addressed. Also, I've excluded the top-level navigation for one of the tests on Android, ...
4 years, 7 months ago (2016-04-27 13:43:57 UTC) #121
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 15:39:36 UTC) #123
alexmos
Great! A couple of last comments and then it should be good to go from ...
4 years, 7 months ago (2016-04-27 23:39:51 UTC) #124
wjmaclean
I've addressed the latest round of comments, PTAL? https://codereview.chromium.org/1804023002/diff/500001/chrome/browser/apps/guest_view/web_view_browsertest.cc File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/500001/chrome/browser/apps/guest_view/web_view_browsertest.cc#newcode2445 chrome/browser/apps/guest_view/web_view_browsertest.cc:2445: // ...
4 years, 7 months ago (2016-04-28 13:20:12 UTC) #125
alexmos
Great, thanks! LGTM once Ken's frame walking question is addressed. Also a sanity check below. ...
4 years, 7 months ago (2016-04-28 17:32:12 UTC) #126
ncarter (slow)
lgtm https://codereview.chromium.org/1804023002/diff/520001/content/browser/frame_host/cross_process_frame_connector.cc File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/1804023002/diff/520001/content/browser/frame_host/cross_process_frame_connector.cc#newcode206 content/browser/frame_host/cross_process_frame_connector.cc:206: // http://crbug.com/xxxxxx <- Don't land without filing this ...
4 years, 7 months ago (2016-04-28 22:30:15 UTC) #127
wjmaclean
https://codereview.chromium.org/1804023002/diff/500001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1804023002/diff/500001/content/browser/web_contents/web_contents_impl.cc#newcode4069 content/browser/web_contents/web_contents_impl.cc:4069: GURL url = pending_entry->GetURL(); On 2016/04/28 at 17:32:12, alexmos ...
4 years, 7 months ago (2016-04-29 13:40:41 UTC) #128
wjmaclean
Lei, while Ken and I are figuring out the frame-walk list, can you please take ...
4 years, 7 months ago (2016-04-29 13:43:24 UTC) #129
kenrb
lgtm, since we are working on my remaining concern in another CL.
4 years, 7 months ago (2016-04-29 17:34:22 UTC) #130
Lei Zhang
lgtm https://codereview.chromium.org/1804023002/diff/520001/chrome/browser/apps/guest_view/web_view_browsertest.cc File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/520001/chrome/browser/apps/guest_view/web_view_browsertest.cc#newcode2445 chrome/browser/apps/guest_view/web_view_browsertest.cc:2445: // http://crbug.com/xxxxxx <-- Don't land without filing this ...
4 years, 7 months ago (2016-04-29 18:03:55 UTC) #131
wjmaclean
On 2016/04/29 18:03:55, Lei Zhang wrote: > lgtm > > https://codereview.chromium.org/1804023002/diff/520001/chrome/browser/apps/guest_view/web_view_browsertest.cc > File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): ...
4 years, 7 months ago (2016-04-29 18:08:12 UTC) #132
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/540001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/540001
4 years, 7 months ago (2016-04-29 18:45:26 UTC) #134
ncarter (slow)
https://codereview.chromium.org/1804023002/diff/520001/content/browser/iframe_zoom_browsertest.cc File content/browser/iframe_zoom_browsertest.cc (right): https://codereview.chromium.org/1804023002/diff/520001/content/browser/iframe_zoom_browsertest.cc#newcode161 content/browser/iframe_zoom_browsertest.cc:161: } // namespace anonymous On 2016/04/29 13:40:41, wjmaclean wrote: ...
4 years, 7 months ago (2016-04-29 19:01:56 UTC) #135
wjmaclean
On 2016/04/29 19:01:56, ncarter wrote: > https://codereview.chromium.org/1804023002/diff/520001/content/browser/iframe_zoom_browsertest.cc > File content/browser/iframe_zoom_browsertest.cc (right): > > https://codereview.chromium.org/1804023002/diff/520001/content/browser/iframe_zoom_browsertest.cc#newcode161 > ...
4 years, 7 months ago (2016-04-29 19:17:59 UTC) #136
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/560001
4 years, 7 months ago (2016-04-29 19:21:04 UTC) #143
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/560001
4 years, 7 months ago (2016-04-29 19:31:30 UTC) #145
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-29 20:50:07 UTC) #147
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1804023002/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1804023002/560001
4 years, 7 months ago (2016-04-29 20:54:22 UTC) #149
commit-bot: I haz the power
Committed patchset #25 (id:560001)
4 years, 7 months ago (2016-04-29 20:59:31 UTC) #151
dcheng
https://codereview.chromium.org/1804023002/diff/560001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1804023002/diff/560001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3077 third_party/WebKit/Source/web/WebViewImpl.cpp:3077: page()->setDeviceScaleFactor(m_zoomFactorForDeviceScaleFactor / m_compositorDeviceScaleFactorOverride); Why do we call the Page ...
4 years, 7 months ago (2016-04-29 22:49:15 UTC) #153
commit-bot: I haz the power
Patchset 25 (id:??) landed as https://crrev.com/64951906c6fb59b33a63313f98819bbafe9eebe2 Cr-Commit-Position: refs/heads/master@{#390755}
4 years, 7 months ago (2016-04-30 17:28:52 UTC) #154
wjmaclean
On 2016/04/29 22:49:15, dcheng wrote: > https://codereview.chromium.org/1804023002/diff/560001/third_party/WebKit/Source/web/WebViewImpl.cpp > File third_party/WebKit/Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/1804023002/diff/560001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3077 > ...
4 years, 7 months ago (2016-05-02 15:30:21 UTC) #156
wjmaclean
On 2016/05/02 15:30:21, wjmaclean wrote: > > It's entirely possible that it would make sense ...
4 years, 7 months ago (2016-05-02 15:32:43 UTC) #157
wjmaclean
On 2016/05/02 15:32:43, wjmaclean wrote: > On 2016/05/02 15:30:21, wjmaclean wrote: > > > > ...
4 years, 7 months ago (2016-05-02 15:38:00 UTC) #158
dcheng
On 2016/05/02 at 15:38:00, wjmaclean wrote: > On 2016/05/02 15:32:43, wjmaclean wrote: > > On ...
4 years, 7 months ago (2016-05-02 17:32:52 UTC) #159
wjmaclean
On 2016/05/02 17:32:52, dcheng wrote: > > Right, we still have to notify the local ...
4 years, 7 months ago (2016-05-02 17:41:41 UTC) #160
dcheng
On 2016/05/02 at 17:41:41, wjmaclean wrote: > On 2016/05/02 17:32:52, dcheng wrote: > > > ...
4 years, 7 months ago (2016-05-02 17:44:30 UTC) #161
kenrb
It certainly does feel like it would be a lot simpler if these zoom values ...
4 years, 7 months ago (2016-05-02 19:23:02 UTC) #162
wjmaclean
On 2016/05/02 19:23:02, kenrb wrote: > It certainly does feel like it would be a ...
4 years, 7 months ago (2016-05-02 19:56:01 UTC) #163
kenrb
On 2016/05/02 19:56:01, wjmaclean wrote: > On 2016/05/02 19:23:02, kenrb wrote: > > It certainly ...
4 years, 7 months ago (2016-05-02 20:13:40 UTC) #164
wjmaclean
4 years, 7 months ago (2016-05-02 20:18:47 UTC) #165
Message was sent while issue was closed.
On 2016/05/02 20:13:40, kenrb wrote:
> On 2016/05/02 19:56:01, wjmaclean wrote:
> > On 2016/05/02 19:23:02, kenrb wrote:
> > > It certainly does feel like it would be a lot simpler if these zoom values
> > were
> > > on Page rather than LocalFrame. The only reason I can see is that popups
> don't
> > > get their own Page but apparently can have a zoom factor that differs from
> the
> > > real page zoom factor, which can be affected by CSS applied to the element
> > that
> > > creates the popup.
> > 
> > Right, I guess that's what I meant when I said 'on RenderView or somewhere
> > relevant' ... blink::Page is 'somewhere relevant' (I wasn't thinking of
> > blink::Page when I read Daniel's comments above, rather I was thinking of
Page
> > as a concept). We already have Page::setDeviceScaleFactor() and
(tangentially)
> > Page::setPageScaleFactor(), so Page::setPageZoomFactor() or
> > Page::setPageZoomLevel(). I'm not sure popups would prevent us from doing
> this;
> > they can be given their own zoom calculated at the time they are created
> > (disclaimer: I have no knowledge off the top of my head about their creation
> > process, so there might be more to this than what I've suggested).
> 
> They are already given their own zoom when they are created, which is stored
in
> the popup's LocalFrame::m_pageZoomFactor.
> 
> So simply moving m_pageZoomFactor to Page and having LocalFrame reference the
> Page's value rather than storing a copy seems like it would break popup zoom.
> You could do something like have a zoom factor override on LocalFrame that can
> be optionally set to tell it not to go to the Page.

Ahh, ok ... I did not realize that the popup was using
LocalFrame::m_pageZoomFactor to store its zoom. Would having an override be
expensive, in the sense that most LocalFrames aren't serving popups? Could the
zoom factor be stored directly on the popup object instead? I haven't had a
chance to look at any of the popup code yet.

Powered by Google App Engine
This is Rietveld 408576698