From ea97de95fe9d5a8f0dafbd0a3cd00b17f90296c8 Mon Sep 17 00:00:00 2001 From: "pavlov%netscape.com" Date: Thu, 22 Mar 2001 09:31:00 +0000 Subject: [PATCH] make it build without the new cache git-svn-id: svn://10.0.0.236/trunk@90104 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpr0n/src/imgRequest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/libpr0n/src/imgRequest.cpp b/mozilla/modules/libpr0n/src/imgRequest.cpp index e379e5796a1..8311b967f31 100644 --- a/mozilla/modules/libpr0n/src/imgRequest.cpp +++ b/mozilla/modules/libpr0n/src/imgRequest.cpp @@ -39,7 +39,9 @@ #include "gfxIImageFrame.h" +#ifdef MOZ_NEW_CACHE #include "nsICachingChannel.h" +#endif #include "ImageCache.h" #include "ImageLogging.h" @@ -535,9 +537,10 @@ NS_IMETHODIMP imgRequest::OnStopRequest(nsIRequest *aRequest, nsISupports *ctxt, /* set our processing flag to false */ mProcessing = PR_FALSE; +#ifdef MOZ_NEW_CACHE /* break the cycle from the cache entry. */ mCacheEntry = nsnull; - +#endif switch(status) { case NS_BINDING_ABORTED: case NS_BINDING_FAILED: