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

Bug 308182, r=biesi, sr=jst
This commit is contained in:
bzbarsky@mit.edu
2006-01-27 01:04:48 +00:00
parent 0b0ee0fca4
commit ef93e89e29
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;
}