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