Tweaking XP_MACOSX ifdefs in a few more places, including a fix for background image clipping. b=111795 r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@109766 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -67,7 +67,7 @@ NS_IMPL_ISUPPORTS1(nsBlender, nsIBlender);
|
||||
// need to set up some masks for 16 bit blending
|
||||
// Use compile-time constants where possible for marginally smaller
|
||||
// footprint (don't need fields in nsBlender) but also for faster code
|
||||
#ifdef XP_MAC
|
||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
||||
|
||||
#define BLEND_RED_MASK 0x7c00
|
||||
#define BLEND_GREEN_MASK 0x03e0
|
||||
|
||||
@@ -2645,7 +2645,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
|
||||
#if !defined(XP_UNIX) && !defined(XP_BEOS)
|
||||
#if (!defined(XP_UNIX) && !defined(XP_BEOS)) || defined(XP_MACOSX)
|
||||
// Setup clipping so that rendering doesn't leak out of the computed
|
||||
// dirty rect
|
||||
PRBool clipState;
|
||||
@@ -2805,7 +2805,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(XP_UNIX) && !defined(XP_BEOS)
|
||||
#if (!defined(XP_UNIX) && !defined(XP_BEOS)) || defined(XP_MACOSX)
|
||||
// Restore clipping
|
||||
aRenderingContext.PopState(clipState);
|
||||
#endif
|
||||
|
||||
@@ -2645,7 +2645,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
|
||||
#if !defined(XP_UNIX) && !defined(XP_BEOS)
|
||||
#if (!defined(XP_UNIX) && !defined(XP_BEOS)) || defined(XP_MACOSX)
|
||||
// Setup clipping so that rendering doesn't leak out of the computed
|
||||
// dirty rect
|
||||
PRBool clipState;
|
||||
@@ -2805,7 +2805,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(XP_UNIX) && !defined(XP_BEOS)
|
||||
#if (!defined(XP_UNIX) && !defined(XP_BEOS)) || defined(XP_MACOSX)
|
||||
// Restore clipping
|
||||
aRenderingContext.PopState(clipState);
|
||||
#endif
|
||||
|
||||
@@ -656,7 +656,7 @@ void imgContainer::FillWithColor(gfxIImageFrame *aFrame, gfx_color color)
|
||||
*rgbRowIndex++ = (backgroundColor & 0x0000FF00) >> 8;
|
||||
*rgbRowIndex++ = backgroundColor & 0x000000FF;
|
||||
#else
|
||||
#ifdef XP_MAC
|
||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
||||
*rgbRowIndex++ = 0;
|
||||
#endif
|
||||
*rgbRowIndex++ = backgroundColor & 0x000000FF;
|
||||
|
||||
Reference in New Issue
Block a user