summaryrefslogtreecommitdiff
path: root/mozilla-1726515.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-08-23 12:45:27 +0200
committerMartin Stransky <stransky@redhat.com>2021-08-23 12:45:27 +0200
commit9bcddab8fd9c4de10ba8955cd330e55bdc8b8462 (patch)
treeb3f61029d1579a8d4120d81115950d27f3138b39 /mozilla-1726515.patch
parentUpdated Fedora UA patch by Eric Engestrom (https://src.fedoraproject.org/rpms... (diff)
downloadlibrewolf-fedora-ff-9bcddab8fd9c4de10ba8955cd330e55bdc8b8462.tar.gz
librewolf-fedora-ff-9bcddab8fd9c4de10ba8955cd330e55bdc8b8462.tar.bz2
librewolf-fedora-ff-9bcddab8fd9c4de10ba8955cd330e55bdc8b8462.zip
Added fix for mozbz#1726515
Diffstat (limited to 'mozilla-1726515.patch')
-rw-r--r--mozilla-1726515.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/mozilla-1726515.patch b/mozilla-1726515.patch
new file mode 100644
index 0000000..91605d5
--- /dev/null
+++ b/mozilla-1726515.patch
@@ -0,0 +1,36 @@
+diff --git a/gfx/thebes/gfxTypes.h b/gfx/thebes/gfxTypes.h
+--- a/gfx/thebes/gfxTypes.h
++++ b/gfx/thebes/gfxTypes.h
+@@ -10,7 +10,7 @@
+ #include "mozilla/TypedEnumBits.h"
+
+ namespace mozilla {
+-enum class StyleGenericFontFamily : uint8_t;
++enum class StyleGenericFontFamily : uint32_t;
+ }
+
+ typedef struct _cairo_surface cairo_surface_t;
+diff --git a/servo/components/style/values/computed/font.rs b/servo/components/style/values/computed/font.rs
+--- a/servo/components/style/values/computed/font.rs
++++ b/servo/components/style/values/computed/font.rs
+@@ -382,6 +382,10 @@
+ /// The order here is important, if you change it make sure that
+ /// `gfxPlatformFontList.h`s ranged array and `gfxFontFamilyList`'s
+ /// sSingleGenerics are updated as well.
++///
++/// NOTE(emilio): Should be u8, but it's a u32 because of ABI issues between GCC
++/// and LLVM see https://bugs.llvm.org/show_bug.cgi?id=44228 / bug 1600735 /
++/// bug 1726515.
+ #[derive(
+ Clone,
+ Copy,
+@@ -397,7 +401,7 @@
+ ToShmem,
+ )]
+ #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
+-#[repr(u8)]
++#[repr(u32)]
+ #[allow(missing_docs)]
+ pub enum GenericFontFamily {
+ /// No generic family specified, only for internal usage.
+
bgstack15