Loading
Bug 1818967 - Use the correct scale in DisplayPortMargins::GetRelativeToLayoutViewport(). r=hiro
mScale is the zoom at the time the displayport margins were set, but the resulting ScreenMargin will be interpreted in the context of the scale at which we're about to paint, which may be different. Note that mMargins themselves are not affected by these two scales being potentially different, since we want the magnitude of the margins to the constant in Screen pixels (i.e. a constant fraction of the viewport size). Differential Revision: https://phabricator.services.mozilla.com/D173577