Skip to content

Commit

Permalink
Bug 604595, part b - Remove the nsIDOMNamedNodeMap* arguments to NS_N…
Browse files Browse the repository at this point in the history
…ewDOMDocumentType; r=sicking
  • Loading branch information
Ms2ger committed Apr 14, 2011
1 parent 8be871c commit 330bb49
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 18 deletions.
2 changes: 0 additions & 2 deletions content/base/src/nsDOMDocumentType.cpp
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions content/base/src/nsDOMDocumentType.h
Expand Up @@ -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);
Expand Down
6 changes: 2 additions & 4 deletions content/base/src/nsDocument.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions content/base/src/nsNodeInfoManager.h
Expand Up @@ -138,8 +138,6 @@ class nsNodeInfoManager
nsNodeInfoManager *,
nsIPrincipal *,
nsIAtom *,
nsIDOMNamedNodeMap *,
nsIDOMNamedNodeMap *,
const nsAString& ,
const nsAString& ,
const nsAString& );
Expand Down
5 changes: 2 additions & 3 deletions content/html/document/src/nsHTMLContentSink.cpp
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions content/xml/document/src/nsXMLContentSink.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion content/xslt/src/xslt/txMozillaXMLOutput.cpp
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions parser/html/nsHtml5TreeOperation.cpp
Expand Up @@ -625,8 +625,6 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
aBuilder->GetNodeInfoManager(),
nsnull,
name,
nsnull,
nsnull,
publicId,
systemId,
voidString);
Expand Down

0 comments on commit 330bb49

Please sign in to comment.