mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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
This commit is contained in:
parent
76173ee85d
commit
6f476c6953
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user