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