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

Issue 1953503005: RenderView needs to know zoom level for loading pages. (Closed)

Created:
4 years, 7 months ago by wjmaclean
Modified:
4 years, 7 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_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

RenderView needs to know zoom level for loading pages. Since r390755 (https://codereview.chromium.org/1804023002), RenderViewImpl keeps track of zoom level for pages so it can be applied when subframes load. This CL fixes a bug where RenderFrameImpl directly sets the zoom level on the WebView for loading pages, without going through RenderViewImpl. This can lead to incorrect zoom levels when redirects occur, or a page is loaded with middle-click. The effect is only seen when the page being loaded contains subframes. This CL forces the zoom change to go via RenderViewImpl. There is a slight behaviour change in this, as this will trigger RenderViewObserver::OnZoomLevelChanged() notifications for a loading page, where it did not before. However, at present the only consumer of this notification is WebViewPlugin, and it is not expected the change will cause problems in this case. BUG=608798, 609213 Committed: https://crrev.com/83f0cc71189113188073aaceee1e5e3dc46f8f08 Cr-Commit-Position: refs/heads/master@{#392684}

Patch Set 1 #

Patch Set 2 : Add test. #

Patch Set 3 : Bug/test not relevant to Android, don't try to run test there. #

Total comments: 6

Patch Set 4 : Remove stale comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -1 line) Patch
M content/browser/iframe_zoom_browsertest.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (15 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/1953503005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953503005/1
4 years, 7 months ago (2016-05-06 21:24:23 UTC) #2
wjmaclean
Initial patch to run on the trybots; test coming Monday.
4 years, 7 months ago (2016-05-06 21:24:29 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-06 22:19:09 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953503005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953503005/20001
4 years, 7 months ago (2016-05-10 13:01:25 UTC) #8
wjmaclean
creis@ - one liner (not including the new test), please take a look?
4 years, 7 months ago (2016-05-10 13:40:33 UTC) #12
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/67724)
4 years, 7 months ago (2016-05-10 14:57:50 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953503005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953503005/40001
4 years, 7 months ago (2016-05-10 15:01:57 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 15:50:12 UTC) #18
Charlie Reis
Thanks for fixing this. There are more calls to SetZoomLevel in RenderFrameImpl than just that ...
4 years, 7 months ago (2016-05-10 17:15:49 UTC) #19
wjmaclean
Stale comment removed (the test should be stable). See other answers to your questions below. ...
4 years, 7 months ago (2016-05-10 17:52:41 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953503005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953503005/60001
4 years, 7 months ago (2016-05-10 18:18:14 UTC) #22
Charlie Reis
[+site-isolation-reviews] Thanks for clarifying. It's subtle enough that you might want a comment about why ...
4 years, 7 months ago (2016-05-10 18:23:51 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 19:25:20 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953503005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953503005/60001
4 years, 7 months ago (2016-05-10 19:30:02 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-10 19:35:02 UTC) #29
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 19:36:43 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/83f0cc71189113188073aaceee1e5e3dc46f8f08
Cr-Commit-Position: refs/heads/master@{#392684}

Powered by Google App Engine
This is Rietveld 408576698