Bug 1105939 part 2 - Suppress windows animation when hiding chrome on OS X. r=smichaud

This commit is contained in:
Xidorn Quan 2015-06-04 13:49:34 +12:00
parent 0ac36879bd
commit 2779731fba

View File

@ -1252,7 +1252,10 @@ NS_IMETHODIMP nsCocoaWindow::HideWindowChrome(bool aShouldHide)
// Show the new window.
if (isVisible) {
bool wasAnimationSuppressed = mIsAnimationSuppressed;
mIsAnimationSuppressed = true;
rv = Show(true);
mIsAnimationSuppressed = wasAnimationSuppressed;
NS_ENSURE_SUCCESS(rv, rv);
}