Well, this is embarassing...

Something's gone wrong in either retrieving or manipulating these review requests. Sorry about that. Please consider filing a bug, and including the following information:


  Stack
  Close
Commit Reviewers
Viewing commit 1 of 2. Show Other Commits
stransky
See it in Mercurial

Commit(s) successfully landed on autoland

Requested by stransky
See it in Mercurial

Commit(s) successfully landed on try

Requested by jhorak

Bug 1431337 - Scale content for the actual monitor, not the first one; r?stransky

Review Request #213914 - Created Jan. 18, 2018 and submitted - Latest diff uploaded

Information
Jan Horak [:jhorak]
gecko
1431337
Jan Horak <jhorak@redhat.com>
Reviewers
gecko
stransky

Bug 1431337 - Scale content for the actual monitor, not the first one; r?stransky

Submitted by jhorak <jhorak@redhat.com> • Authored by Jan Horak <jhorak@redhat.com>
Created Jan. 18, 2018 and submitted
We need to use scaling factor of the monitor on which application is actually positioned.
Previously we used ScreenHelperGTK::GetGTKMonitorScaleFactor() which use the first monitor.
This does not work on hidpi+normal dpi monitors setup.

The GetSystemFontInfo() cannot return scaled value of the font by default monitor
scale factor. We need to scale it in nsLookAndFeel::GetFontImpl
by aDevPixPerCSSPixel like implementation for Windows does.

We also need to check layout.css.devPixelsPerPx because we cannot
scale per monitor when this preference is set to positive number.

MozReview-Commit-ID: AwT2NvkEqvz
Loading...