nsCOMPtr<nsIDOMNode> sectionNode;  nsresult result = GetParentNode(getter_AddRefs(sectionNode));  if (NS_SUCCEEDED(result) && sectionNode) { nsCOMPtr<nsIDOMNode> tableNode;  result = sectionNode->GetParentNode(getter_AddRefs(tableNode));  if (NS_SUCCEEDED(result) && tableNode) { result = tableNode->QueryInterface(NS_GET_IID(nsIDOMHTMLTableElement), (void**)aTable); } }  return result;
return rv;
nsHTMLTableRowElement::GetTable(nsIDOMHTMLTableElement** aTable){  *aTable = nsnull;  if (!aTable) {    return NS_ERROR_OUT_OF_MEMORY;  }  nsCOMPtr<nsIDOMNode> sectionNode;  nsresult result = GetParentNode(getter_AddRefs(sectionNode));  if (NS_SUCCEEDED(result) && sectionNode) {    nsCOMPtr<nsIDOMNode> tableNode;    result = sectionNode->GetParentNode(getter_AddRefs(tableNode));    if (NS_SUCCEEDED(result) && tableNode) {      result = tableNode->QueryInterface(NS_GET_IID(nsIDOMHTMLTableElement),                                         (void**)aTable);    }  }  return result;}