Modifications to make the tree view speak to RDF.

This commit is contained in:
hyatt%netscape.com 1998-12-09 19:56:30 +00:00
parent 962ec07d6f
commit d4ec7486ce
2 changed files with 3 additions and 0 deletions

View File

@ -906,6 +906,7 @@ nsBrowserWindow::DoTreeView()
// doesn't refcount the document in which it lives, so you'll
// need to keep a pointer to *both* the document and the
// content.
mTreeView->SetContentRoot(root);
NS_RELEASE(root);
}
NS_RELEASE(doc); // i.e., unless you've refcounted "doc", root dies _now_

View File

@ -144,6 +144,7 @@ static NS_DEFINE_CID(kPresShellCID, NS_PRESSHELL_CID);
static NS_DEFINE_CID(kHTMLStyleSheetCID, NS_HTMLSTYLESHEET_CID);
static NS_DEFINE_CID(kTextNodeCID, NS_TEXTNODE_CID);
static NS_DEFINE_CID(kSelectionCID, NS_SELECTION_CID);
static NS_DEFINE_CID(kRangeListCID, NS_RANGELIST_CID);
extern "C" void
NS_SetupRegistry()
@ -208,4 +209,5 @@ NS_SetupRegistry()
nsRepository::RegisterFactory(kHTMLStyleSheetCID, LAYOUT_DLL, PR_FALSE, PR_FALSE);
nsRepository::RegisterFactory(kTextNodeCID, LAYOUT_DLL, PR_FALSE, PR_FALSE);
nsRepository::RegisterFactory(kSelectionCID, LAYOUT_DLL, PR_FALSE, PR_FALSE);
nsRepository::RegisterFactory(kRangeListCID, LAYOUT_DLL, PR_FALSE, PR_FALSE);
}