if (nsnull == aSection) { return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIDOMNode> sectionNode; nsresult rv = GetParentNode(getter_AddRefs(sectionNode)); if (NS_SUCCEEDED(rv) && sectionNode) { rv = CallQueryInterface(sectionNode, aSection);
nsHTMLTableRowElement::GetSection(nsIDOMHTMLTableSectionElement** aSection){  *aSection = nsnull;  if (nsnull == aSection) {    return NS_ERROR_OUT_OF_MEMORY;  }  nsIDOMNode *sectionNode = nsnull;  nsresult result = GetParentNode(&sectionNode);  if (NS_SUCCEEDED(result) && (nsnull != sectionNode)) {    result = sectionNode->QueryInterface(NS_GET_IID(nsIDOMHTMLTableSectionElement), (void**)aSection);    NS_RELEASE(sectionNode);  }  return result;}