B2G/gecko/toolkit/content/tests/fennec-tile-testapp/chrome/content/WidgetStack.js
// was either resized or some other event took place.
was either resized or some other event took place.
was either resized or some other event took place .
function updateSize(width, height) {
    if (width == undefined || height == undefined) {
      let rect = this._el.getBoundingClientRect();
      width = rect.width;
      height = rect.height;
    }
    this._viewingRect.width = width;
    this._viewingRect.height = height;
    this.beginUpdateBatch();
    this._adjustViewingRect();
    this.endUpdateBatch();
  }
function updateSize ( width , height ) { if ( width == undefined || height == undefined ) { let rect = this . _el . getBoundingClientRect ( ) ; width = rect . width ; height = rect . height ; } this . _viewingRect . width = width ; this . _viewingRect . height = height ; this . beginUpdateBatch ( ) ; this . _adjustViewingRect ( ) ; this . endUpdateBatch ( ) ; }
was either resized or some other event took place.
was either resized or some other event took place .
// update widget rects and viewportOverflow, since the resize might have // caused them to change (widgets first, since the viewportOverflow depends // on them). // XXX these methods aren't working correctly yet, but they aren't strictly // necessary in Fennec's default config //for each (let s in this._widgetState) //  this._updateWidgetRect(s); //this._updateViewportOverflow(); // Wrap this call in a batch to ensure that we always call the // viewportUpdateHandler, even if _adjustViewingRect doesn't trigger a pan. // If it does, the batch also ensures that we don't call the handler twice.