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