зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1168274 part 1 - Avoid triggering window reflow for hiding margins when entering fullscreen on Windows. r=jimm
--HG-- extra : source : a1d29ea748b8d0b8881a5308aebd37149485ec7a
This commit is contained in:
Родитель
90b66cb081
Коммит
37319ac05a
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче