Backed out changeset f6ca531ca5b2 (bug 1573710) requested by alice0775. a=backout

This commit is contained in:
Gurzau Raul 2019-10-20 12:02:39 +03:00
Родитель 669c97fe42
Коммит 5fb4897bbc
1 изменённых файлов: 1 добавлений и 12 удалений

Просмотреть файл

@ -334,17 +334,6 @@ void WinCompositorWidget::UpdateCompositorWndSizeIfNecessary() {
return; return;
} }
// This code is racing with the compositor, which needs to reparent
// the compositor surface to the actual window (mWnd). To avoid racing
// mutations, we refuse to proceed until GetParent returns the
// expected result. It's ok to fail to resize here since this function is
// called pretty frequently, and the reparenting race only happens when the
// window is being created for the first time.
HWND realParent = ::GetParent(mCompositorWnds.mCompositorWnd);
if (realParent != mWnd) {
return;
}
LayoutDeviceIntSize size = GetClientSize(); LayoutDeviceIntSize size = GetClientSize();
if (mLastCompositorWndSize == size) { if (mLastCompositorWndSize == size) {
return; return;
@ -353,7 +342,7 @@ void WinCompositorWidget::UpdateCompositorWndSizeIfNecessary() {
// Force a resize and redraw (but not a move, activate, etc.). // Force a resize and redraw (but not a move, activate, etc.).
if (!::SetWindowPos(mCompositorWnds.mCompositorWnd, nullptr, 0, 0, size.width, if (!::SetWindowPos(mCompositorWnds.mCompositorWnd, nullptr, 0, 0, size.width,
size.height, size.height,
SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOCOPYBITS |
SWP_NOOWNERZORDER | SWP_NOZORDER)) { SWP_NOOWNERZORDER | SWP_NOZORDER)) {
return; return;
} }