diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 467c60cb724..def3e3a3f6e 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -356,14 +356,10 @@ SelectionImageService::CreateImage(nscolor aImageColor, imgIContainer *aContaine *data++ = NS_GET_B(aImageColor); *data++ = NS_GET_G(aImageColor); *data++ = NS_GET_R(aImageColor); -#endif -#if defined(XP_UNIX) && !defined(XP_MACOSX) - *data++ = NS_GET_R(aImageColor); - *data++ = NS_GET_G(aImageColor); - *data++ = NS_GET_B(aImageColor); -#endif +#else #if defined(XP_MAC) || defined(XP_MACOSX) *data++ = 0; +#endif *data++ = NS_GET_R(aImageColor); *data++ = NS_GET_G(aImageColor); *data++ = NS_GET_B(aImageColor); diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index 467c60cb724..def3e3a3f6e 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -356,14 +356,10 @@ SelectionImageService::CreateImage(nscolor aImageColor, imgIContainer *aContaine *data++ = NS_GET_B(aImageColor); *data++ = NS_GET_G(aImageColor); *data++ = NS_GET_R(aImageColor); -#endif -#if defined(XP_UNIX) && !defined(XP_MACOSX) - *data++ = NS_GET_R(aImageColor); - *data++ = NS_GET_G(aImageColor); - *data++ = NS_GET_B(aImageColor); -#endif +#else #if defined(XP_MAC) || defined(XP_MACOSX) *data++ = 0; +#endif *data++ = NS_GET_R(aImageColor); *data++ = NS_GET_G(aImageColor); *data++ = NS_GET_B(aImageColor);