B2G/gecko/browser/base/content/newtab/transformations.js
/**
   * Freezes a site in its current position by positioning it absolute.
   * @param aSite The site to freeze.
   */
Freezes a site in its current position by positioning it absolute.
@param aSite The site to freeze.
Freezes a site in its current position by positioning it absolute . @param aSite The site to freeze .
function Transformation_freezeSitePosition(aSite) {
    if (this._isFrozen(aSite))
      return;
    let style = aSite.node.style;
    let comp = getComputedStyle(aSite.node, null);
    style.width = comp.getPropertyValue("width")
    style.height = comp.getPropertyValue("height");
    aSite.node.setAttribute("frozen", "true");
    this.setSitePosition(aSite, this.getNodePosition(aSite.node));
  }
function Transformation_freezeSitePosition ( aSite ) { if ( this . _isFrozen ( aSite ) ) return ; let style = aSite . node . style ; let comp = getComputedStyle ( aSite . node , null ) ; style . width = comp . getPropertyValue ( "width" ) style . height = comp . getPropertyValue ( "height" ) ; aSite . node . setAttribute ( "frozen" , "true" ) ; this . setSitePosition ( aSite , this . getNodePosition ( aSite . node ) ) ; }
Freezes a site in its current position by positioning it absolute.
Freezes a site in its current position by positioning it absolute .