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