Remove use of nsXMLDocument so we only use interfaces.

This commit is contained in:
Peter.VanderBeken%pandora.be 2000-04-17 22:00:30 +00:00
parent 323fb9085e
commit d988193393
2 changed files with 8 additions and 2 deletions

View File

@ -34,8 +34,8 @@
//
#include "mozilladom.h"
#include "nsXMLDocument.h"
#include "iostream.h"
#include "nsCOMPtr.h"
//
//Construct a Document Wrapper object without specificy a nsIDOMDocument
@ -43,7 +43,11 @@
//
Document::Document()
{
nsDocument = new nsXMLDocument();
nsCOMPtr<nsIDocument> document;
nsresult res = NS_NewXMLDocument(getter_AddRefs(document));
if (NS_SUCCEEDED(res) && document) {
document->QueryInterface(NS_GET_IID(nsIDOMDocument), (void**) &nsDocument);
}
Node::setNSObj(nsDocument, this);
}

View File

@ -56,6 +56,8 @@
#include "HashTable.h"
//A bunch of Mozilla DOM headers
#include "nsIDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"