NS_RELEASE(child);
SetDocumentInChildrenOf(nsIContent* aContent, nsIDocument* aDocument){  PRInt32 i, n;  aContent->ChildCount(n);  for (i = 0; i < n; i++) {    nsIContent* child;    aContent->ChildAt(i, child);    if (nsnull != child) {      child->SetDocument(aDocument);      SetDocumentInChildrenOf(child, aDocument);    }  }}