aboutsummaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-bug1602730_comment5
blob: 212221b6d5cf1d43a46b9cdfc20314b1a8551a95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- gfx/layers/composite/CompositableHost.cpp.orig	2020-09-12 21:47:42 UTC
+++ gfx/layers/composite/CompositableHost.cpp
@@ -10,6 +10,7 @@
 #include "Effects.h"  // for EffectMask, Effect, etc
 #include "gfxUtils.h"
 #include "Layers.h"
+#include "mozilla/EndianUtils.h"
 #include "mozilla/gfx/gfxVars.h"
 #include "mozilla/layers/LayersSurfaces.h"  // for SurfaceDescriptor
 #include "mozilla/layers/TextureHost.h"     // for TextureHost, etc
@@ -89,9 +90,13 @@
   }
   MOZ_ASSERT(source);
 
+  // Setting an alpha-mask here breaks the URL-bar on big endian (s390x)
+  // if the typed URL is too long for the textbox (automatic scrolling needed)
+#if MOZ_LITTLE_ENDIAN()
   RefPtr<EffectMask> effect =
       new EffectMask(source, source->GetSize(), aTransform);
   aEffects.mSecondaryEffects[EffectTypes::MASK] = effect;
+#endif
   return true;
 }