Bug 1457189 - Dispatch the resolutionchange event when changing the display resolution even if DPI remains the same. r=jimm

MozReview-Commit-ID: A0thvn5bBDy

--HG--
extra : rebase_source : 50795a1b7f7704b0cb636faf2f60acd89ea5bfab
This commit is contained in:
Dão Gottwald 2018-04-27 14:30:03 +02:00
parent 541fe0552d
commit 3277c04273
2 changed files with 3 additions and 1 deletions

View File

@ -5919,6 +5919,9 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam,
case WM_DISPLAYCHANGE:
{
ScreenHelperWin::RefreshScreens();
if (mWidgetListener) {
mWidgetListener->UIResolutionChanged();
}
break;
}

View File

@ -121,7 +121,6 @@ void nsWindowBase::ChangedDPI()
if (presShell) {
presShell->BackingScaleFactorChanged();
}
mWidgetListener->UIResolutionChanged();
}
}