From 7991dbf7be52f11d4efee5ad26df9a0d01dce3ed Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Sat, 21 Dec 2002 15:34:01 +0000 Subject: [PATCH] 186216 r=paper sr=tor image decoders don't need to #include "nsIImage.h" git-svn-id: svn://10.0.0.236/trunk@135546 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpr0n/decoders/bmp/Makefile.in | 1 - .../modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp | 5 +---- .../modules/libpr0n/decoders/bmp/nsICODecoder.cpp | 6 ------ .../modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp | 1 - mozilla/modules/libpr0n/decoders/mng/nsMNGDecoder.h | 1 - mozilla/modules/libpr0n/decoders/xbm/Makefile.in | 1 - .../modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp | 12 +----------- 7 files changed, 2 insertions(+), 25 deletions(-) diff --git a/mozilla/modules/libpr0n/decoders/bmp/Makefile.in b/mozilla/modules/libpr0n/decoders/bmp/Makefile.in index 18a3d6851c3..d3f5bdb2f96 100644 --- a/mozilla/modules/libpr0n/decoders/bmp/Makefile.in +++ b/mozilla/modules/libpr0n/decoders/bmp/Makefile.in @@ -36,7 +36,6 @@ MODULE_NAME = nsBMPModule REQUIRES = xpcom \ gfx \ imglib2 \ - string \ $(NULL) CPPSRCS = nsBMPDecoder.cpp nsICODecoder.cpp diff --git a/mozilla/modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp b/mozilla/modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp index 723a588e00b..f463c91c618 100644 --- a/mozilla/modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp +++ b/mozilla/modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp @@ -46,14 +46,11 @@ #include "nsIInputStream.h" #include "nsIComponentManager.h" -#include "nsIImage.h" -#include "nsMemory.h" #include "imgIContainerObserver.h" -#include "nsRect.h" #include "imgILoad.h" -#include "ImageLogging.h" +#include "prlog.h" PRLogModuleInfo *gBMPLog = PR_NewLogModule("BMPDecoder"); diff --git a/mozilla/modules/libpr0n/decoders/bmp/nsICODecoder.cpp b/mozilla/modules/libpr0n/decoders/bmp/nsICODecoder.cpp index d717aecaf5a..46ae0f2d320 100644 --- a/mozilla/modules/libpr0n/decoders/bmp/nsICODecoder.cpp +++ b/mozilla/modules/libpr0n/decoders/bmp/nsICODecoder.cpp @@ -43,16 +43,10 @@ #include "nsIInputStream.h" #include "nsIComponentManager.h" -#include "nsIImage.h" -#include "nsMemory.h" #include "imgIContainerObserver.h" -#include "nsRect.h" -#include "nsCRT.h" #include "imgILoad.h" -#include "prcpucfg.h" // To get IS_LITTLE_ENDIAN / IS_BIG_ENDIAN - NS_IMPL_ISUPPORTS1(nsICODecoder, imgIDecoder) #define ICONCOUNTOFFSET 4 diff --git a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp index 822c8a2c66e..59580ab1785 100644 --- a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp +++ b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp @@ -24,7 +24,6 @@ #include "nsGIFDecoder2.h" #include "nsIInputStream.h" #include "nsIComponentManager.h" -#include "nsIImage.h" #include "nsMemory.h" #include "imgIContainerObserver.h" diff --git a/mozilla/modules/libpr0n/decoders/mng/nsMNGDecoder.h b/mozilla/modules/libpr0n/decoders/mng/nsMNGDecoder.h index e3a7e790486..20eedcb1837 100644 --- a/mozilla/modules/libpr0n/decoders/mng/nsMNGDecoder.h +++ b/mozilla/modules/libpr0n/decoders/mng/nsMNGDecoder.h @@ -27,7 +27,6 @@ #include "imgIContainer.h" #include "imgIDecoderObserver.h" #include "gfxIImageFrame.h" -#include "nsWeakReference.h" #include "imgILoad.h" #define NS_MNGDECODER_CID \ diff --git a/mozilla/modules/libpr0n/decoders/xbm/Makefile.in b/mozilla/modules/libpr0n/decoders/xbm/Makefile.in index 19b68575881..8ce3fe3a362 100644 --- a/mozilla/modules/libpr0n/decoders/xbm/Makefile.in +++ b/mozilla/modules/libpr0n/decoders/xbm/Makefile.in @@ -36,7 +36,6 @@ MODULE_NAME = nsXBMModule REQUIRES = xpcom \ gfx \ imglib2 \ - string \ $(NULL) CPPSRCS = nsXBMDecoder.cpp diff --git a/mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp b/mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp index adb1d1bb965..57a92dc55e9 100644 --- a/mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp +++ b/mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp @@ -40,16 +40,12 @@ #include #include +#include #include "nsXBMDecoder.h" #include "nsIInputStream.h" #include "nsIComponentManager.h" -#include "nsIImage.h" -#include "nsMemory.h" -#include "imgIContainerObserver.h" -#include "nsRect.h" -#include "nsReadableUtils.h" #include "imgILoad.h" @@ -198,12 +194,6 @@ nsresult nsXBMDecoder::ProcessData(const char* aData, PRUint32 aCount) { } } if (mState == RECV_DATA) { -#if defined(XP_MAC) || defined(XP_MACOSX) -// bytes per pixel - const PRUint32 bpp = 4; -#else - const PRUint32 bpp = 3; -#endif PRUint32 bpr; mFrame->GetImageBytesPerRow(&bpr); PRUint32 abpr;