Bug 1470341 - Also call UIResolutionChanged from WM_MOVING. r?jimm draft
authorDão Gottwald <dao@mozilla.com>
Wed, 04 Jul 2018 12:58:33 +0200
changeset 814066 011933cae5f8af5a39e70fd7837aed832b16ad5a
parent 814054 cc3401e78e8bbae22e6dbc854e525ceae4923bcf
push id115076
push userdgottwald@mozilla.com
push dateWed, 04 Jul 2018 10:58:59 +0000
reviewersjimm
bugs1470341
milestone63.0a1
Bug 1470341 - Also call UIResolutionChanged from WM_MOVING. r?jimm MozReview-Commit-ID: 2qyYncBG9jf
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -5898,16 +5898,19 @@ nsWindow::ProcessMessage(UINT msg, WPARA
         // if it appears that the window's scaling is not what we expect.
         // This causes the prescontext and appshell window management code to
         // check the appUnitsPerDevPixel value and current widget size, and
         // refresh them if necessary. If nothing has changed, these calls will
         // return without actually triggering any extra reflow or painting.
         if (WinUtils::LogToPhysFactor(mWnd) != mDefaultScale) {
           ChangedDPI();
           ResetLayout();
+          if (mWidgetListener) {
+            mWidgetListener->UIResolutionChanged();
+          }
         }
       }
       break;
 
     case WM_ENTERSIZEMOVE:
     {
       if (mResizeState == NOT_RESIZING) {
         mResizeState = IN_SIZEMOVE;