mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Remove use of nsXMLDocument so we only use interfaces.
This commit is contained in:
parent
323fb9085e
commit
d988193393
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user