B2G/gecko/browser/base/content/newtab/sites.js
/**
   * Renders the site's data (fills the HTML fragment).
   */
Renders the site's data (fills the HTML fragment).
Renders the site ' s data ( fills the HTML fragment ) .
function Site_render() {
    let url = this.url;
    let title = this.title || url;
    let tooltip = (title == url ? title : title + "\n" + url);
    let link = this._querySelector(".newtab-link");
    link.setAttribute("title", tooltip);
    link.setAttribute("href", url);
    this._querySelector(".newtab-title").textContent = title;
    if (this.isPinned())
      this._updateAttributes(true);
    let thumbnailURL = PageThumbs.getThumbnailURL(this.url);
    let thumbnail = this._querySelector(".newtab-thumbnail");
    thumbnail.style.backgroundImage = "url(" + thumbnailURL + ")";
  }
function Site_render ( ) { let url = this . url ; let title = this . title || url ; let tooltip = ( title == url ? title : title + "\n" + url ) ; let link = this . _querySelector ( ".newtab-link" ) ; link . setAttribute ( "title" , tooltip ) ; link . setAttribute ( "href" , url ) ; this . _querySelector ( ".newtab-title" ) . textContent = title ; if ( this . isPinned ( ) ) this . _updateAttributes ( true ) ; let thumbnailURL = PageThumbs . getThumbnailURL ( this . url ) ; let thumbnail = this . _querySelector ( ".newtab-thumbnail" ) ; thumbnail . style . backgroundImage = "url(" + thumbnailURL + ")" ; }
Renders the site's data (fills the HTML fragment).
Renders the site ' s data ( fills the HTML fragment ) .