fune/toolkit/components/browser
Emilio Cobos Álvarez ee23efc9b5 Bug 1773813 - Incorporate OS zoom factor in window sizing calculations. r=tnikkel
In bug 1773342 I made OS text scale factor behave like a full zoom
factor which applies to all pages (including the browser chrome). That's
generally straight forward but it makes some callsites that use unzoomed
CSS coordinates misbehave (or behave correctly accidentally actually in
some other cases).

The main fix here is making
nsIBaseWindow::UnscaledDevicePixelsPerCSSPixel() and
nsIScreen::GetDefaultCSSScaleFactor() account for OS zoom as necessary.
However, I also went through the relevant code and cleaned it up to use
typed units and operations when possible.

The setup means:

 * nsIWidget::GetDefaultScale() doesn't account for OS full zoom.
 * nsIBaseWindow and nsIScreen does.

These are the places where this should matter and stuff can get
confused, but this works surprisingly well for all callers (except one
nsDeviceContext one which we use only for PuppetWidget and we can
remove by falling back to 1.0 like all other widgets until the update
comes).

Differential Revision: https://phabricator.services.mozilla.com/D149033
2022-06-14 15:01:52 +00:00
..
build
moz.build Bug 1769113 - Kill off nsIPrintingPromptService and use nsIPrintDialogService directly. r=emilio 2022-05-13 11:20:59 +00:00
nsEmbedCID.h
nsIEmbeddingSiteWindow.idl
nsIPrintPreviewNavigation.idl
nsIWebBrowser.idl
nsIWebBrowserChrome.idl
nsIWebBrowserChromeFocus.idl
nsIWebBrowserPrint.idl Bug 1769756 - Remove nsIWebBrowserPrint.currentPrintSettings. r=bobowen 2022-05-17 15:04:24 +00:00
nsWebBrowser.cpp Bug 1773813 - Incorporate OS zoom factor in window sizing calculations. r=tnikkel 2022-06-14 15:01:52 +00:00
nsWebBrowser.h Bug 1680611 - part 3: Mark nsFocusManager::WindowLowered() and its callers in nsFocusManager as MOZ_CAN_RUN_SCRIPT r=smaug 2022-05-26 04:37:18 +00:00
nsWebBrowserContentPolicy.cpp
nsWebBrowserContentPolicy.h