mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
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:
parent
50a1f348cb
commit
441b9a7998
@ -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 \
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user