rem: function buildDownloadList(aStmt, aRef) 
add: function buildDownloadList() 
context: function buildDownloadList(aStmt, aRef){  while (aRef.nextSibling && aRef.nextSibling.tagName == "richlistitem")    gDownloadsView.removeChild(aRef.nextSibling);  while (aStmt.executeStep()) {    let id = aStmt.getInt64(0);    let state = aStmt.getInt32(4);    let percentComplete = 100;    if (state == nsIDM.DOWNLOAD_NOTSTARTED ||        state == nsIDM.DOWNLOAD_DOWNLOADING ||        state == nsIDM.DOWNLOAD_PAUSED) {      // so we have an in-progress download that we need to determine the      // proper percentage complete for.  This download will actually be in      // the active downloads array internally, so calling getDownload is cheap.      let dl = gDownloadManager.getDownload(id);      percentComplete = dl.percentComplete;    }    let dl = createDownloadItem(id,                                aStmt.getString(1),                                aStmt.getString(2),                                aStmt.getString(3),                                state,                                percentComplete,                                Math.round(aStmt.getInt64(5) / 1000),                                Math.round(aStmt.getInt64(6) / 1000),                                aStmt.getString(7),                                aStmt.getInt64(8),                                aStmt.getInt64(9));    if (dl)      gDownloadsView.insertBefore(dl, aRef.nextSibling);  }  evenOddCellAttribution();}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/9810b8f68ff07897884a4823d5058725fda85355/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js