|
|
Created:
5 years, 3 months ago by lfg Modified:
5 years, 3 months ago CC:
dcheng, blink-reviews, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org, sky Base URL:
https://chromium.googlesource.com/chromium/blink.git@master Target Ref:
refs/heads/master Project:
blink Visibility:
Public. |
DescriptionPropagate the correct device scale factor into the RemoteFrame.
BUG=522237, 493262
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201936
Patch Set 1 : #Patch Set 2 : addressing comments #Patch Set 3 : rebase #
Messages
Total messages: 24 (8 generated)
lfg@chromium.org changed reviewers: + dcheng@chromium.org
Hi Daniel, please take a look!
Patchset #1 (id:1) has been deleted
dcheng@chromium.org changed reviewers: + bokan@chromium.org
+bokan, who's probably a better reviewer for this
(Also, update the CL description to point to the original bug as well?)
I spoke with lfg@ offline briefly about this. I was unsure that device_scale_factor was the correct thing to pass here. However, taking a second look I think this is correct. The main consumer of this seems to be expecting the DSF ( CrossProcessFrameConnector::OnInitializeChildFrame) though there is another user in HTMLFrame::initializeChildFrame that seems to assume this will always be 1. (https://code.google.com/p/chromium/codesearch#chromium/src/components/html_vi...) I would leave a TODO there and maybe notify a relevant owner for that code, chances are it's a no-op but I have no expertise there. While we're here, could you please also update the WebFrameClient interface and its descendants to disambiguate the scale parameter in initializeChildFrame(). scale_factor is quite ambiguous and IMO that's led to confusion here, please name it device_scale_factor so future generations will know what we're talking about. Also, in your issue description 's/page scale factor/device scale factor'.
On 2015/09/07 20:50:15, bokan wrote: > I spoke with lfg@ offline briefly about this. I was unsure that > device_scale_factor was the correct thing to pass here. However, taking a second > look I think this is correct. The main consumer of this seems to be expecting > the DSF ( CrossProcessFrameConnector::OnInitializeChildFrame) though there is > another user in HTMLFrame::initializeChildFrame that seems to assume this will > always be 1. > (https://code.google.com/p/chromium/codesearch#chromium/src/components/html_vi...) > I would leave a TODO there and maybe notify a relevant owner for that code, > chances are it's a no-op but I have no expertise there. The scale factor is ignored by the Mandoline as of today, but that should be fixed at one point. > While we're here, could you please also update the WebFrameClient interface and > its descendants to disambiguate the scale parameter in initializeChildFrame(). > scale_factor is quite ambiguous and IMO that's led to confusion here, please > name it device_scale_factor so future generations will know what we're talking > about. Also, in your issue description 's/page scale factor/device scale > factor'. Done. I'll follow with another patch to rename it in content.
lgtm (nit: issue description still says page scale)
+sky FYI, since this changes the interface used by HTMLFrame.
lgtm
The CQ bit was checked by lfg@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312903017/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312903017/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by lfg@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from bokan@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/1312903017/#ps60001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312903017/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312903017/60001
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201936
Message was sent while issue was closed.
sky@chromium.org changed reviewers: + sky@chromium.org
Message was sent while issue was closed.
I'm hoping this doesn't impact htmlviewer. Will find out shortly though.
Message was sent while issue was closed.
It shouldn't, HTMLFrame ignores that parameter and gets the scale factor from the global_state(). Not sure if that's the best though or if that should be refactored in htmlviewer. On Tue, Sep 8, 2015 at 7:57 PM <sky@chromium.org> wrote: > I'm hoping this doesn't impact htmlviewer. Will find out shortly though. > > https://codereview.chromium.org/1312903017/ > To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
Message was sent while issue was closed.
All frames in a tree should have the same scale factor, right? On Tue, Sep 8, 2015 at 5:38 PM, Lucas Gadani <lfg@google.com> wrote: > It shouldn't, HTMLFrame ignores that parameter and gets the scale factor > from the global_state(). Not sure if that's the best though or if that > should be refactored in htmlviewer. > > > On Tue, Sep 8, 2015 at 7:57 PM <sky@chromium.org> wrote: >> >> I'm hoping this doesn't impact htmlviewer. Will find out shortly though. >> >> https://codereview.chromium.org/1312903017/ To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
Message was sent while issue was closed.
On 2015/09/09 15:09:51, sky wrote: > All frames in a tree should have the same scale factor, right? > Yes, both device scale factor and page scale factor should be the same. In the pre-OOPIF world, they were properties of the Page (so all Frames) but I'm not sure how that's going to change. |