File mozilla-bmo1504834-part4.patch of Package MozillaFirefox.openSUSE_Leap_15.2_Update
# HG changeset patch
# Parent 95bcf60bb4e85bb4fbb34cffa86c71d72b5e5f9b
Problem description: Tab-titles that are too long to fit into a tab get faded out.
On big endian this is broken and instead of fading out, the
tab gets white and the font transparent, leading to an unreadable
Solution: This is not a real solution, but a hack. The real solution would have been
to byte-swap the correct buffer, but I could not find it.
So the next best thing is to deactivate the fading-effect. Now all tab-titles
are readable, albeit not as pretty to look at as they could be.
Side-effects: I have not yet found an unwanted side-effect.
diff --git a/gfx/2d/DrawTargetSkia.cpp b/gfx/2d/DrawTargetSkia.cpp
@@ -1895,16 +1895,24 @@ void DrawTargetSkia::PushLayerWithBlend(
aBounds.IsEmpty() ? nullptr : &bounds, &paint, nullptr, clipImage.get(),
(aCopyBackground ? SkCanvas::kInitWithPrevious_SaveLayerFlag : 0));
+ // Pushing a layer where an aMask is defined produces wrong output.
+ // We _should_ endian swap the data, but I couldn't find a workable way to do so
+ // Therefore I deactivate those layers in the meantime.
+ // The result is: Tab-titles that are longer than the available space should be faded out.
+ // The fading doesn't work, so we deactivate the fading-effect here.
+ if (!aMask)
mCG = nullptr;