Bug 604595, part b - Remove the nsIDOMNamedNodeMap* arguments to NS_NewDOMDocumentType; r=sicking

This commit is contained in:
Ms2ger 2011-04-14 14:04:21 +02:00
parent b007736e51
commit dcca90ed82
8 changed files with 6 additions and 18 deletions

View File

@ -58,8 +58,6 @@ NS_NewDOMDocumentType(nsIDOMDocumentType** aDocType,
nsNodeInfoManager *aNodeInfoManager,
nsIPrincipal *aPrincipal,
nsIAtom *aName,
nsIDOMNamedNodeMap*,
nsIDOMNamedNodeMap*,
const nsAString& aPublicId,
const nsAString& aSystemId,
const nsAString& aInternalSubset)

View File

@ -94,8 +94,6 @@ NS_NewDOMDocumentType(nsIDOMDocumentType** aDocType,
nsNodeInfoManager *aOwnerDoc,
nsIPrincipal *aPrincipal,
nsIAtom *aName,
nsIDOMNamedNodeMap *aEntities,
nsIDOMNamedNodeMap *aNotations,
const nsAString& aPublicId,
const nsAString& aSystemId,
const nsAString& aInternalSubset);

View File

@ -1441,8 +1441,8 @@ nsDOMImplementation::CreateDocumentType(const nsAString& aQualifiedName,
// Indicate that there is no internal subset (not just an empty one)
nsAutoString voidString;
voidString.SetIsVoid(PR_TRUE);
return NS_NewDOMDocumentType(aReturn, nsnull, mPrincipal, name, nsnull,
nsnull, aPublicId, aSystemId, voidString);
return NS_NewDOMDocumentType(aReturn, nsnull, mPrincipal, name, aPublicId,
aSystemId, voidString);
}
NS_IMETHODIMP
@ -1507,8 +1507,6 @@ nsDOMImplementation::CreateHTMLDocument(const nsAString& aTitle,
NULL, // aNodeInfoManager
mPrincipal, // aPrincipal
nsGkAtoms::html, // aName
NULL, // aEntities
NULL, // aNotations
EmptyString(), // aPublicId
EmptyString(), // aSystemId
voidString); // aInternalSubset

View File

@ -138,8 +138,6 @@ protected:
nsNodeInfoManager *,
nsIPrincipal *,
nsIAtom *,
nsIDOMNamedNodeMap *,
nsIDOMNamedNodeMap *,
const nsAString& ,
const nsAString& ,
const nsAString& );

View File

@ -2465,9 +2465,8 @@ HTMLContentSink::AddDocTypeDecl(const nsIParserNode& aNode)
nsAutoString voidString;
voidString.SetIsVoid(PR_TRUE);
rv = NS_NewDOMDocumentType(getter_AddRefs(docType),
mDocument->NodeInfoManager(), nsnull,
nameAtom, nsnull, nsnull, publicId, systemId,
voidString);
mDocument->NodeInfoManager(), nsnull, nameAtom,
publicId, systemId, voidString);
NS_ENSURE_SUCCESS(rv, rv);
if (oldDocType) {

View File

@ -1231,8 +1231,7 @@ nsXMLContentSink::HandleDoctypeDecl(const nsAString & aSubset,
// Create a new doctype node
nsCOMPtr<nsIDOMDocumentType> docType;
rv = NS_NewDOMDocumentType(getter_AddRefs(docType), mNodeInfoManager, nsnull,
name, nsnull, nsnull, aPublicId, aSystemId,
aSubset);
name, aPublicId, aSystemId, aSubset);
if (NS_FAILED(rv) || !docType) {
return rv;
}

View File

@ -949,7 +949,7 @@ txMozillaXMLOutput::createResultDocument(const nsSubstring& aName, PRInt32 aNsID
voidString.SetIsVoid(PR_TRUE);
rv = NS_NewDOMDocumentType(getter_AddRefs(documentType),
mNodeInfoManager, nsnull,
doctypeName, nsnull, nsnull,
doctypeName,
mOutputFormat.mPublicId,
mOutputFormat.mSystemId,
voidString);

View File

@ -625,8 +625,6 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
aBuilder->GetNodeInfoManager(),
nsnull,
name,
nsnull,
nsnull,
publicId,
systemId,
voidString);