if (nsnull != mParent) { mParent->FireOnEndDocumentLoad(aStatus); }
if (nsnull != mParent) { mParent->ChildDocLoaderFiredEndDocumentLoad(this, aStatus); }
void nsDocLoaderImpl::FireOnEndDocumentLoad(PRInt32 aStatus){  PRInt32 count = mDocObservers.Count();  PRInt32 index;  /*   * First notify any observers that the URL load has begun...   */  for (index = 0; index < count; index++) {    nsIDocumentLoaderObserver* observer = (nsIDocumentLoaderObserver*)mDocObservers.ElementAt(index);    observer->OnEndDocumentLoad((nsIDocumentLoader*) this, mDocumentUrl, aStatus);  }  /*   * Finally notify the parent...   */  if (nsnull != mParent) {    mParent->FireOnEndDocumentLoad(aStatus);  }}