components/desktop/firefox/patches/firefox31-408-urlbar-sparc.patch
author Stacy Yeh <stacy.yeh@oracle.com>
Mon, 11 Jan 2016 09:27:45 -0800
changeset 5255 cea0e462549a
permissions -rw-r--r--
22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland

For the font in the URL bar. Can try to send upstream. 

--- mozilla-esr31/gfx/cairo/cairo/src/cairo-xlib-surface.c.orig	2015-06-04 17:42:52.933166699 -0700
+++ mozilla-esr31/gfx/cairo/cairo/src/cairo-xlib-surface.c	2015-06-04 17:42:52.936030831 -0700
@@ -1310,7 +1310,11 @@
 		int a, r, g, b;
 
 		if (image_masks.bpp == 1)
+#ifdef WORDS_BIGENDIAN
+		    in_pixel = !! (((uint8_t*)row)[x/8] & (1 << (7 - (x & 7))));
+#else
 		    in_pixel = !! (((uint8_t*)row)[x/8] & (1 << (x & 7)));
+#endif
 		else if (image_masks.bpp <= 8)
 		    in_pixel = ((uint8_t*)row)[x];
 		else if (image_masks.bpp <= 16)