Bug 1168274 part 1 - Avoid triggering window reflow for hiding margins when entering fullscreen on Windows. r=jimm

This commit is contained in:
Xidorn Quan 2015-06-02 09:22:49 +12:00
parent 77646296c3
commit ab696ade93

View File

@ -2868,7 +2868,9 @@ nsWindow::MakeFullScreen(bool aFullScreen, nsIScreen* aTargetScreen)
SetSizeMode(mOldSizeMode);
}
UpdateNonClientMargins();
// If we are going fullscreen, the window size continues to change
// and the window will be reflow again then.
UpdateNonClientMargins(mSizeMode, /* Reflow */ !aFullScreen);
bool visible = mIsVisible;
if (mOldSizeMode == nsSizeMode_Normal)