aboutsummaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-bug1602730_comment5
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-09-12 23:32:49 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-09-12 23:32:49 +0000
commit6e7e49eb3a2abd21e2aaaccfd410bb7ad94297a0 (patch)
tree70e618686dc9cf4dda6812a6681c485a04219fd1 /www/firefox/files/patch-bug1602730_comment5
parentb8abcf61d7f7ceeb2db9654dcc175d88fe92e93b (diff)
downloadports-6e7e49eb3a2abd21e2aaaccfd410bb7ad94297a0.tar.gz
ports-6e7e49eb3a2abd21e2aaaccfd410bb7ad94297a0.zip
www/firefox: fixes for some color issues on powerpc64
Some image formats still suffer from endianness issues, fix it partially by removing one obsolete patch and adding another.
Notes
Notes: svn path=/head/; revision=548439
Diffstat (limited to 'www/firefox/files/patch-bug1602730_comment5')
-rw-r--r--www/firefox/files/patch-bug1602730_comment524
1 files changed, 24 insertions, 0 deletions
diff --git a/www/firefox/files/patch-bug1602730_comment5 b/www/firefox/files/patch-bug1602730_comment5
new file mode 100644
index 000000000000..49f9f4321df8
--- /dev/null
+++ b/www/firefox/files/patch-bug1602730_comment5
@@ -0,0 +1,24 @@
+--- gfx/layers/composite/CompositableHost.cpp.orig 2020-09-12 21:47:42 UTC
++++ gfx/layers/composite/CompositableHost.cpp
+@@ -13,6 +13,7 @@
+ #include "ImageHost.h" // for ImageHostBuffered, etc
+ #include "Layers.h"
+ #include "TiledContentHost.h" // for TiledContentHost
++#include "mozilla/EndianUtils.h"
+ #include "mozilla/gfx/gfxVars.h"
+ #include "mozilla/layers/LayersSurfaces.h" // for SurfaceDescriptor
+ #include "mozilla/layers/TextureHost.h" // for TextureHost, etc
+@@ -92,9 +93,13 @@ bool CompositableHost::AddMaskEffect(EffectChain& aEff
+ }
+ 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;
+ }
+