if (aIID.Equals(kIDocStreamLoaderFactoryIID)) {
if (aIID.Equals(NS_GET_IID(nsIDocStreamLoaderFactory))) {
nsLayoutDLF::QueryInterface(REFNSIID aIID, void** aInstancePtrResult){  if (NULL == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);  if (aIID.Equals(kIDocumentLoaderFactoryIID)) {    nsIDocumentLoaderFactory *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(kIDocStreamLoaderFactoryIID)) {    nsIDocStreamLoaderFactory *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(kISupportsIID)) {    nsIDocumentLoaderFactory *tmp = this;    nsISupports *tmp2 = tmp;    *aInstancePtrResult = (void*) tmp2;    AddRef();    return NS_OK;  }  return NS_NOINTERFACE;}