Bug 1824603 - Use BrowsingContext zoom level rather than nsPresContext zoom level...
commitc8526a4603a1ecdc78f852b561e2ee1c17239520
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 3 Apr 2023 09:03:25 +0000 (3 09:03 +0000)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 3 Apr 2023 09:03:25 +0000 (3 09:03 +0000)
tree82160de390270324502e1154bdcbdd140c9016ac
parentcd0d1c9898b80039ff508ad9b283f4237a55e3b2
Bug 1824603 - Use BrowsingContext zoom level rather than nsPresContext zoom level for root SVGs. r=longsonr

This trivially reproduces with ui.textScaleFactor=150 or so.

This needs to match ImageDocument::GetZoomLevel, for the math here to
work out.

Differential Revision: https://phabricator.services.mozilla.com/D174367
dom/html/test/browser.ini
dom/html/test/browser_ImageDocument_svg_zoom.js [new file with mode: 0644]
layout/svg/SVGOuterSVGFrame.cpp
layout/svg/SVGOuterSVGFrame.h