summaryrefslogtreecommitdiff
path: root/mozilla-1634404.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-10-08 11:29:38 +0200
committerMartin Stransky <stransky@redhat.com>2020-10-08 11:29:38 +0200
commitd8a28dd1be850f378c6b6c67c161403b469a0659 (patch)
treee2baaf4b414dd2ed65da5af5c40db9da6a82124d /mozilla-1634404.patch
parentRemoved mozbz#1656727 as it causes a regression rhbz#1886243 (diff)
downloadlibrewolf-fedora-ff-d8a28dd1be850f378c6b6c67c161403b469a0659.tar.gz
librewolf-fedora-ff-d8a28dd1be850f378c6b6c67c161403b469a0659.tar.bz2
librewolf-fedora-ff-d8a28dd1be850f378c6b6c67c161403b469a0659.zip
Added fixes for mozbz#1634404, mozbz#1669495, mozbz#1656727
Diffstat (limited to 'mozilla-1634404.patch')
-rw-r--r--mozilla-1634404.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/mozilla-1634404.patch b/mozilla-1634404.patch
new file mode 100644
index 0000000..75ea8ce
--- /dev/null
+++ b/mozilla-1634404.patch
@@ -0,0 +1,20 @@
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -1593,7 +1593,14 @@
+ // Get anchor rectangle
+ LayoutDeviceIntRect anchorRect(0, 0, 0, 0);
+ nsMenuPopupFrame* popupFrame = GetMenuPopupFrame(GetFrame());
+- int32_t p2a = AppUnitsPerCSSPixel() / gfxPlatformGtk::GetFontScaleFactor();
++
++ int32_t p2a;
++ double devPixelsPerCSSPixel = StaticPrefs::layout_css_devPixelsPerPx();
++ if (devPixelsPerCSSPixel > 0.0) {
++ p2a = AppUnitsPerCSSPixel() / devPixelsPerCSSPixel * GdkScaleFactor();
++ } else {
++ p2a = AppUnitsPerCSSPixel() / gfxPlatformGtk::GetFontScaleFactor();
++ }
+ if (popupFrame) {
+ #ifdef MOZ_WAYLAND
+ anchorRect = LayoutDeviceIntRect::FromAppUnitsToOutside(
+
bgstack15