return NextNode(&mCurNode);
nsCOMPtr<nsIContent> nextNode; if (!NS_SUCCEEDED(GetNextSibling(mCurNode, &nextNode))) return NS_ERROR_FAILURE; nextNode = GetDeepFirstChild(nextNode); return GetTopAncestorInRange(nextNode, &mCurNode);
nsresult nsContentIterator::Next(){  if (mIsDone)     return NS_ERROR_FAILURE;  if (!mCurNode)     return NS_OK;  if (mCurNode == mLast)   {    mIsDone = PR_TRUE;    return NS_ERROR_FAILURE;  }    return NextNode(&mCurNode);}