6e1282
# HG changeset patch
6e1282
# Parent  46ea866ca3acb8bb5e1709ceb799b9c94f591dec
6e1282
Problem description: Tab-titles that are too long to fit into a tab get faded out.
6e1282
                     On big endian this is broken and instead of fading out, the 
6e1282
                     tab gets white and the font transparent, leading to an unreadable
6e1282
                     tab-title
6e1282
Solution: This is not a real solution, but a hack. The real solution would have been
6e1282
          to byte-swap the correct buffer, but I could not find it.
6e1282
          So the next best thing is to deactivate the fading-effect. Now all tab-titles
6e1282
          are readable, albeit not as pretty to look at as they could be. 
6e1282
Side-effects: I have not yet found an unwanted side-effect.
6e1282
6e1282
diff -r 46ea866ca3ac -r 6ef20eee3f8f gfx/2d/DrawTargetSkia.cpp
6e1282
--- a/gfx/2d/DrawTargetSkia.cpp	Tue Oct 22 12:27:22 2019 +0200
6e1282
+++ b/gfx/2d/DrawTargetSkia.cpp	Thu Oct 31 09:11:56 2019 +0100
6e1282
@@ -1861,6 +1861,14 @@
6e1282
       SkCanvas::kPreserveLCDText_SaveLayerFlag |
6e1282
           (aCopyBackground ? SkCanvas::kInitWithPrevious_SaveLayerFlag : 0));
6e1282
 
6e1282
+#if MOZ_BIG_ENDIAN
6e1282
+  // Pushing a layer where an aMask is defined produces wrong output.
6e1282
+  // We _should_ endian swap the data, but I couldn't find a workable way to do so
6e1282
+  // Therefore I deactivate those layers in the meantime.
6e1282
+  // The result is: Tab-titles that are longer than the available space should be faded out.
6e1282
+  //                The fading doesn't work, so we deactivate the fading-effect here.
6e1282
+  if (!aMask)
6e1282
+#endif
6e1282
   mCanvas->saveLayer(saveRec);
6e1282
 
6e1282
   SetPermitSubpixelAA(aOpaque);