Force the tree demo to dump the content model before displaying the tree.

This commit is contained in:
waterson%netscape.com 1998-12-10 08:29:14 +00:00
parent 199b6771f3
commit d86a0959f9

View File

@ -902,6 +902,10 @@ nsBrowserWindow::DoTreeView()
if (NS_SUCCEEDED(rv = rdf_CreateBookmarkDocument(doc))) {
nsIContent* root = doc->GetRootContent();
if (root) {
// XXX Dump the content model that the tree is going to be built
// on.
root->List();
// XXX do whatever here. Note that the RDF nsIContent currently
// doesn't refcount the document in which it lives, so you'll
// need to keep a pointer to *both* the document and the