author | Jonathan Kew <jkew@mozilla.com> |
Tue, 01 Mar 2016 12:08:35 +0000 | |
changeset 286190 | e3a41a0486eebca77e59e90d1585ffe9c53e4851 |
parent 286189 | bd725321463610780d209963e9a6999d52faff0e |
child 286191 | df6847768408ed5a157913f2db8b23c495549540 |
push id | 72691 |
push user | jkew@mozilla.com |
push date | Tue, 01 Mar 2016 12:09:33 +0000 |
treeherder | mozilla-inbound@e3a41a0486ee [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | emk |
bugs | 1245442, 890156 |
milestone | 47.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
|
--- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -2321,28 +2321,16 @@ nsWindow::UpdateNonClientMargins(int32_t // makes the whole caption part of our client area, allowing us to draw // in the whole caption area. Use default frame size on left, right, and // bottom. The reason this works is that, for maximized windows, // Windows positions them so that their frames fall off the screen. // This gives the illusion of windows having no frames when they are // maximized. If we try to mess with the frame sizes by setting these // offsets to positive values, our client area will fall off the screen. mNonClientOffset.top = mCaptionHeight; - // Adjust for the case where the window is maximized on a screen with DPI - // different from the primary monitor; this seems to be linked to Windows' - // failure to scale the non-client area the same as the client area. - // Any modifications here need to be tested for both high- and low-dpi - // secondary displays, and for windows both with and without the titlebar - // and/or menubar displayed. - double ourScale = WinUtils::LogToPhysFactor(mWnd); - double primaryScale = - WinUtils::LogToPhysFactor(WinUtils::GetPrimaryMonitor()); - mNonClientOffset.top += - NSToIntRound(mVertResizeMargin * (ourScale - primaryScale)); - mNonClientOffset.bottom = 0; mNonClientOffset.left = 0; mNonClientOffset.right = 0; APPBARDATA appBarData; appBarData.cbSize = sizeof(appBarData); UINT taskbarState = SHAppBarMessage(ABM_GETSTATE, &appBarData); if (ABS_AUTOHIDE & taskbarState) {