Bug 330041 - <svg:image> upside down and color shifted with cairo gfx.

Also fixes artifacts on animated gifs with cairo gfx.  r=vlad
This commit is contained in:
tor%cs.brown.edu 2006-03-10 22:27:37 +00:00
parent 50a1f348cb
commit 441b9a7998
2 changed files with 3 additions and 1 deletions

View File

@ -67,10 +67,12 @@ typedef enum {
#define nsImageUpdateFlags_kColorMapChanged 0x1
#define nsImageUpdateFlags_kBitsChanged 0x2
#ifndef MOZ_CAIRO_GFX
// The following platforms store image data rows bottom-up.
#if defined(XP_WIN) || defined(XP_OS2) || defined(XP_MACOSX)
#define MOZ_PLATFORM_IMAGES_BOTTOM_TO_TOP
#endif
#endif
// IID for the nsIImage interface
#define NS_IIMAGE_IID \

View File

@ -527,7 +527,7 @@ nsSVGImageFrame::ConvertFrame(gfxIImageFrame *aNewFrame)
rgb++;
#endif
#if defined(XP_UNIX) && !defined(XP_MACOSX)
#if (defined(XP_UNIX) && !defined(XP_MACOSX)) || defined(MOZ_CAIRO_GFX)
#define REVERSE_CHANNELS
#endif