Make docshell visibility checking check with the tree owner so that embedding

gets a chance to claim docshells as invisible (eg in Camino's tab
implementation).  Bug 306245, patch by jst, r=sfraser, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@182521 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-10-19 02:59:30 +00:00
parent 82a20981f3
commit 93fe3f6cf6
2 changed files with 16 additions and 5 deletions

View File

@@ -3757,8 +3757,16 @@ nsDocShell::GetVisibility(PRBool * aVisibility)
treeItem->GetParent(getter_AddRefs(parentItem));
}
*aVisibility = PR_TRUE;
return NS_OK;
nsCOMPtr<nsIBaseWindow>
treeOwnerAsWin(do_QueryInterface(mTreeOwner));
if (!treeOwnerAsWin) {
*aVisibility = PR_TRUE;
return NS_OK;
}
// Check with the tree owner as well to give embedders a chance to
// expose visibility as well.
return treeOwnerAsWin->GetVisibility(aVisibility);
}
NS_IMETHODIMP