PRUint32 count = GetChildCount();  for (PRUint32 index = 0; index < count; ++index) { nsIContent* kid = NS_STATIC_CAST(nsIContent*, mChildren.ElementAt(index)); NS_RELEASE(kid);
PRUint32 count = mAttrsAndChildren.ChildCount(); while (count > 0) { mAttrsAndChildren.RemoveChildAt(--count);
nsDocumentFragment::DropChildReferences(){  PRUint32 count = GetChildCount();  for (PRUint32 index = 0; index < count; ++index) {    nsIContent* kid = NS_STATIC_CAST(nsIContent*, mChildren.ElementAt(index));    NS_RELEASE(kid);  }  mChildren.Clear();  return NS_OK;}