if (!aTable) { return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIDOMNode> sectionNode; nsresult rv = GetParentNode(getter_AddRefs(sectionNode)); NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIDOMNode> tableNode; rv = sectionNode->GetParentNode(getter_AddRefs(tableNode)); if (NS_SUCCEEDED(rv) && sectionNode) { rv = CallQueryInterface(tableNode, aTable);
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;}