bug 1455177 do not resize but only hide window when bounds make the window empty r?bradwerth
This restores behavior to that prior to https://hg.mozilla.org/mozilla-central/rev/cb0eda54dfab#l1.139
MozReview-Commit-ID: Kf8TCl7Xsg3
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -4200,16 +4200,18 @@ nsWindow::NativeMoveResize()
// hides the window or shows it. It also prevents us from
// calling NativeShow(false) excessively on the window which
// causes unneeded X traffic.
if (!mNeedsShow && mIsShown) {
mNeedsShow = true;
NativeShow(false);
}
NativeMove();
+
+ return;
}
GdkRectangle size = DevicePixelsToGdkSizeRoundUp(mBounds.Size());
GdkPoint topLeft = DevicePixelsToGdkPointRoundDown(mBounds.TopLeft());
LOG(("nsWindow::NativeMoveResize [%p] %d %d %d %d\n", (void *)this,
topLeft.x, topLeft.y, size.width, size.height));