B2G/gecko/browser/components/tabview/tabitems.js
// Draws contents of the tabs' browser window to the given canvas context.
Draws contents of the tabs' browser window to the given canvas context.
Draws contents of the tabs ' browser window to the given canvas context .
function TabCanvas__drawWindow(ctx, width, height, bgColor) {
    this._fillCanvasBackground(ctx, width, height, bgColor);
    let rect = this._calculateClippingRect(width, height);
    let scaler = width / rect.width;
    ctx.save();
    ctx.scale(scaler, scaler);
    try {
      let win = this.tab.linkedBrowser.contentWindow;
      ctx.drawWindow(win, rect.left, rect.top, rect.width, rect.height,
                     bgColor, ctx.DRAWWINDOW_DO_NOT_FLUSH);
    } catch (e) {
      Utils.error('paint', e);
    }
    ctx.restore();
  }
function TabCanvas__drawWindow ( ctx , width , height , bgColor ) { this . _fillCanvasBackground ( ctx , width , height , bgColor ) ; let rect = this . _calculateClippingRect ( width , height ) ; let scaler = width / rect . width ; ctx . save ( ) ; ctx . scale ( scaler , scaler ) ; try { let win = this . tab . linkedBrowser . contentWindow ; ctx . drawWindow ( win , rect . left , rect . top , rect . width , rect . height , bgColor , ctx . DRAWWINDOW_DO_NOT_FLUSH ) ; } catch ( e ) { Utils . error ( 'paint' , e ) ; } ctx . restore ( ) ; }
Draws contents of the tabs' browser window to the given canvas context.
Draws contents of the tabs ' browser window to the given canvas context .