summarylogtreecommitdiffstats
path: root/0002-Bug-1504834-XULText-AA-fix-BE.patch
blob: ca72c2a6f159123e94a4cfb0ea57d8fac181ef29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Martin Sirringhaus <msirringhaus@suse.de>
Date: Mon, 25 Nov 2019 09:31:46 +0200
Subject: [PATCH] Bug 1504834 - XULText-AA-fix BE

For FF68, AntiAliasing of XULTexts seem to be broken on big endian (s390x). Text and icons of the sandwich-menu to the

right of the address bar, as well as plugin-windows appears transparant, which usually means unreadable (white on white).

https://bugzilla.mozilla.org/show_bug.cgi?id=1504834#c9
---
 gfx/skia/skia/src/opts/SkBlitMask_opts.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gfx/skia/skia/src/opts/SkBlitMask_opts.h b/gfx/skia/skia/src/opts/SkBlitMask_opts.h
index 43dd5e20734534ef73e46b2f1a40168ee682dec6..51e74d1b691c65f97d2cec38c3c9276c9f50823b 100644
--- a/gfx/skia/skia/src/opts/SkBlitMask_opts.h
+++ b/gfx/skia/skia/src/opts/SkBlitMask_opts.h
@@ -386,6 +386,8 @@ namespace SK_OPTS_NS {
             //   ~~~>
             // a = 1*aa + d(1-1*aa) = aa + d(1-aa)
             // c = 0*aa + d(1-1*aa) =      d(1-aa)
+            // TODO: Check this for endian-issues!
+            //       Do we need to switch 255 to the front for all of those tuples?
             return (aa & Sk4px(skvx::byte16{0,0,0,255, 0,0,0,255, 0,0,0,255, 0,0,0,255}))
                  + d.approxMulDiv255(aa.inv());
         };