зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
50a1f348cb
Коммит
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче