From 6f476c6953d31ab079b79799085715d0464fbe98 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Thu, 3 Mar 2016 11:58:41 +0000 Subject: [PATCH] Bug 1239353 - Don't try to change DPI on the fly for popup windows, they remain connected to their parent's presShell and therefore need to share its resolution. r=emk --- widget/windows/nsWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index f81f908d498d..4faa34b2043b 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -6863,6 +6863,11 @@ nsWindow::OnSysColorChanged() void nsWindow::OnDPIChanged(int32_t x, int32_t y, int32_t width, int32_t height) { + // Don't try to handle WM_DPICHANGED for popup windows (see bug 1239353); + // they remain tied to their original parent's resolution. + if (mWindowType == eWindowType_popup) { + return; + } if (DefaultScaleOverride() > 0.0) { return; }