child->GetParent(*getter_AddRefs(parent));
child->GetParent(getter_AddRefs(parent));
nsDocumentFragment::ReconnectChildren(){  nsCOMPtr<nsIContent> child, parent;  PRInt32 i, count = 0;  ChildCount(count);  for (i = 0; i < count; i++) {    ChildAt(i, *getter_AddRefs(child));    NS_ASSERTION(child, "Bad content container");    child->GetParent(*getter_AddRefs(parent));    if (parent) {      PRInt32 indx = -1;      // This is potentially a O(n**2) operation, but it should only      // happen in error cases (such as out of memory or something      // similar) so we don't care for now.      parent->IndexOf(child, indx);      if (indx >= 0) {        parent->RemoveChildAt(indx, PR_TRUE);      }    }    child->SetParent(this);  }  return NS_OK;}