cN->ChildAt(--numChildren,*getter_AddRefs(cChild));
cN->ChildAt(--numChildren, getter_AddRefs(cChild));
nsCOMPtr<nsIContent> nsGeneratedContentIterator::GetDeepLastChild(nsCOMPtr<nsIContent> aRoot){  nsCOMPtr<nsIContent> deepFirstChild;    if (aRoot)   {      nsCOMPtr<nsIContent> cN = aRoot;    nsCOMPtr<nsIContent> cChild;    PRInt32 numChildren;  #if DO_AFTER    //CHECK FOR AFTER STUFF    nsresult result = NS_ERROR_FAILURE;    if (mPresShell)      result = mPresShell->GetGeneratedContentIterator(cN,nsIPresShell::After,getter_AddRefs(mGenIter));    if (NS_SUCCEEDED(result) && mGenIter)    { //ok we have a generated iter all bets are off      mIterType = nsIPresShell::After;      mGenIter->First();      return cN;    }#endif    cN->ChildCount(numChildren);    while ( numChildren )    {      cN->ChildAt(--numChildren,*getter_AddRefs(cChild));      if (cChild)      {#if DO_AFTER        //CHECK FOR AFTER STUFF        if (mPresShell)          result = mPresShell->GetGeneratedContentIterator(cChild,nsIPresShell::After,getter_AddRefs(mGenIter));        if (NS_SUCCEEDED(result) && mGenIter)        { //ok we have a generated iter all bets are off          mGenIter->Last();          mIterType = nsIPresShell::After;          return cChild;        }#endif        cChild->ChildCount(numChildren);        cN = cChild;      }      else      {        break;      }    }    deepFirstChild = cN;  }    return deepFirstChild;}