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