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:
Jonathan Kew 2016-03-03 11:58:41 +00:00
parent 76173ee85d
commit 6f476c6953

View File

@ -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;
}