if (aIID.Equals(kISupportsIID)) { *aInstancePtrResult = (void*)(nsISupports*)(nsIContentIterator*)this;
if (aIID.Equals(nsIGeneratedContentIterator::GetIID())) { *aInstancePtr = NS_STATIC_CAST(nsIGeneratedContentIterator *,this);
nsresult nsContentIterator::QueryInterface(const nsIID& aIID,                                     void** aInstancePtrResult){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null pointer");  if (nsnull == aInstancePtrResult)   {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(kISupportsIID))   {    *aInstancePtrResult = (void*)(nsISupports*)(nsIContentIterator*)this;    NS_ADDREF_THIS();    return NS_OK;  }/*  if (aIID.Equals(NS_GET_IID(nsIEnumerator)))   {    *aInstancePtrResult = (void*)(nsIEnumerator*)this;    NS_ADDREF_THIS();    return NS_OK;  }  */  if (aIID.Equals(NS_GET_IID(nsIContentIterator)))   {    *aInstancePtrResult = (void*)(nsIContentIterator*)this;    NS_ADDREF_THIS();    return NS_OK;  }  return NS_NOINTERFACE;}