B2G/gecko/browser/devtools/shared/LayoutHelpers.jsm
/**
   * Apply the page zoom factor.
   */
Apply the page zoom factor.
Apply the page zoom factor .
function LH_getZoomedRect(aWin, aRect) {
    let zoom =
      aWin.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
        .getInterface(Components.interfaces.nsIDOMWindowUtils)
        .fullZoom;
    let aRectScaled = {};
    for (let prop in aRect) {
      aRectScaled[prop] = aRect[prop] * zoom;
    }
    return aRectScaled;
  }
function LH_getZoomedRect ( aWin , aRect ) { let zoom = aWin . QueryInterface ( Components . interfaces . nsIInterfaceRequestor ) . getInterface ( Components . interfaces . nsIDOMWindowUtils ) . fullZoom ; let aRectScaled = { } ; for ( let prop in aRect ) { aRectScaled [ prop ] = aRect [ prop ] * zoom ; } return aRectScaled ; }
Apply the page zoom factor.
Apply the page zoom factor .
// get page zoom factor, if any // adjust rect for zoom scaling