Bug 1470341 - Also call UIResolutionChanged from WM_MOVING. r=jimm
authorDão Gottwald <dao@mozilla.com>
Wed, 04 Jul 2018 12:58:33 +0200
changeset 426538 0c8bac19dc29429dba2092091fd5f77f3c4f8237
parent 426537 1b52153377e34adda9c64c5637d5335ca2f8f403
child 426539 618089e03bd6db4525bd6947860aeebc8a25e1fe
push id105265
push usernerli@mozilla.com
push dateFri, 13 Jul 2018 22:23:56 +0000
treeherdermozilla-inbound@0f509352f6a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1470341
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
@@ -5907,16 +5907,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;