B2G/gecko/browser/components/tabview/tabitems.js
// Updates the tabitem's canvas.
Updates the tabitem's canvas.
Updates the tabitem ' s canvas .
function TabItem_updateCanvas() {
    let $canvas = this.$canvas;
    if (!this.canvasSizeForced) {
      let w = $canvas.width();
      let h = $canvas.height();
      if (w != $canvas[0].width || h != $canvas[0].height) {
        $canvas[0].width = w;
        $canvas[0].height = h;
      }
    }
    TabItems._lastUpdateTime = Date.now();
    this._lastTabUpdateTime = TabItems._lastUpdateTime;
    if (this.tabCanvas)
      this.tabCanvas.paint();
    if (this.isShowingCachedData())
      this.hideCachedData();
  }
function TabItem_updateCanvas ( ) { let $canvas = this . $canvas ; if ( ! this . canvasSizeForced ) { let w = $canvas . width ( ) ; let h = $canvas . height ( ) ; if ( w != $canvas [ 0 ] . width || h != $canvas [ 0 ] . height ) { $canvas [ 0 ] . width = w ; $canvas [ 0 ] . height = h ; } } TabItems . _lastUpdateTime = Date . now ( ) ; this . _lastTabUpdateTime = TabItems . _lastUpdateTime ; if ( this . tabCanvas ) this . tabCanvas . paint ( ) ; if ( this . isShowingCachedData ( ) ) this . hideCachedData ( ) ; }
Updates the tabitem's canvas.
Updates the tabitem ' s canvas .
// ___ thumbnail // ___ cache