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