B2G/gecko/browser/components/thumbnails/PageThumbs.jsm
/**
   * Creates a new hidden canvas element.
   * @return The newly created canvas.
   */
Creates a new hidden canvas element.
@return The newly created canvas.
Creates a new hidden canvas element . @return The newly created canvas .
function PageThumbs_createCanvas() {
    let doc = Services.appShell.hiddenDOMWindow.document;
    let canvas = doc.createElementNS(HTML_NAMESPACE, "canvas");
    canvas.mozOpaque = true;
    canvas.mozImageSmoothingEnabled = true;
    let [thumbnailWidth, thumbnailHeight] = this._getThumbnailSize();
    canvas.width = thumbnailWidth;
    canvas.height = thumbnailHeight;
    return canvas;
  }
function PageThumbs_createCanvas ( ) { let doc = Services . appShell . hiddenDOMWindow . document ; let canvas = doc . createElementNS ( HTML_NAMESPACE , "canvas" ) ; canvas . mozOpaque = true ; canvas . mozImageSmoothingEnabled = true ; let [ thumbnailWidth , thumbnailHeight ] = this . _getThumbnailSize ( ) ; canvas . width = thumbnailWidth ; canvas . height = thumbnailHeight ; return canvas ; }
Creates a new hidden canvas element.
Creates a new hidden canvas element .