зеркало из https://github.com/mozilla/gecko-dev.git
Force the tree demo to dump the content model before displaying the tree.
This commit is contained in:
Родитель
199b6771f3
Коммит
d86a0959f9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче