mNodeInfo->NameChanged(nsHTMLAtoms::tr, *getter_AddRefs(nodeInfo));
mNodeInfo->NameChanged(nsHTMLAtoms::tr, getter_AddRefs(nodeInfo));
nsHTMLTableSectionElement::InsertRow(PRInt32 aIndex,                                     nsIDOMHTMLElement** aValue){  *aValue = nsnull;  if (aIndex < -1) {    return NS_ERROR_DOM_INDEX_SIZE_ERR;  }  nsCOMPtr<nsIDOMHTMLCollection> rows;  GetRows(getter_AddRefs(rows));  PRUint32 rowCount;  rows->GetLength(&rowCount);  if (aIndex > (PRInt32)rowCount) {    return NS_ERROR_DOM_INDEX_SIZE_ERR;  }  PRBool doInsert = (aIndex < PRInt32(rowCount)) && (aIndex != -1);  // create the row  nsCOMPtr<nsINodeInfo> nodeInfo;  mNodeInfo->NameChanged(nsHTMLAtoms::tr, *getter_AddRefs(nodeInfo));  nsCOMPtr<nsIHTMLContent> rowContent;  nsresult rv = NS_NewHTMLTableRowElement(getter_AddRefs(rowContent),                                          nodeInfo);  NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIDOMNode> rowNode(do_QueryInterface(rowContent));  NS_ASSERTION(rowNode, "Should implement nsIDOMNode!");  nsCOMPtr<nsIDOMNode> retChild;  if (doInsert) {    nsCOMPtr<nsIDOMNode> refRow;    rows->Item(aIndex, getter_AddRefs(refRow));    rv = InsertBefore(rowNode, refRow, getter_AddRefs(retChild));  } else {    rv = AppendChild(rowNode, getter_AddRefs(retChild));  }  if (retChild) {    CallQueryInterface(retChild, aValue);  }  return NS_OK;}