The default content tree owner now has a separation of primary versus normal content areas. Primary areas are the only content areas that actually react to and set the title.

This commit is contained in:
tbogard@aol.net
2000-01-30 07:29:38 +00:00
parent e226f7e822
commit 865760e9c1
4 changed files with 43 additions and 7 deletions

View File

@@ -40,7 +40,8 @@ static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID);
//*** nsContentTreeOwner: Object Management
//*****************************************************************************
nsContentTreeOwner::nsContentTreeOwner() : mXULWindow(nsnull)
nsContentTreeOwner::nsContentTreeOwner(PRBool fPrimary) : mXULWindow(nsnull),
mPrimary(fPrimary)
{
NS_INIT_REFCNT();
}
@@ -306,6 +307,10 @@ NS_IMETHODIMP nsContentTreeOwner::GetTitle(PRUnichar** aTitle)
NS_IMETHODIMP nsContentTreeOwner::SetTitle(const PRUnichar* aTitle)
{
// We only allow the title to be set from the primary content shell
if(!mPrimary)
return NS_OK;
// Get the window title modifiers
nsCOMPtr<nsIDOMElement> docShellElement;
mXULWindow->GetDOMElementFromDocShell(mXULWindow->mDocShell,