Make hiding a frame with display:none really hide the docshell all the way.

Bug 308182, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@188300 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-01-27 01:04:48 +00:00
parent 0eab141425
commit b12310e6b5
2 changed files with 16 additions and 7 deletions

View File

@@ -3820,12 +3820,12 @@ nsDocShell::SetVisibility(PRBool aVisibility)
if (!mContentViewer)
return NS_OK;
if (aVisibility) {
NS_ENSURE_SUCCESS(EnsureContentViewer(), NS_ERROR_FAILURE);
mContentViewer->Show();
}
else if (mContentViewer)
else {
mContentViewer->Hide();
}
return NS_OK;
}