result = content->GetParent(*getter_AddRefs(parent));
result = content->GetParent(getter_AddRefs(parent));
ParentOffset(nsIDOMNode *aNode, nsIDOMNode **aParent, PRInt32 *aChildOffset){  if (!aNode || !aParent || !aChildOffset)    return NS_ERROR_NULL_POINTER;  nsresult result = NS_OK;  nsCOMPtr<nsIContent> content = do_QueryInterface(aNode, &result);  if (NS_SUCCEEDED(result) && content)  {    nsCOMPtr<nsIContent> parent;    result = content->GetParent(*getter_AddRefs(parent));    if (NS_SUCCEEDED(result) && parent)    {      result = parent->IndexOf(content, *aChildOffset);      if (NS_SUCCEEDED(result)) {        result = CallQueryInterface(parent, aParent);      }    }  }  return result;}