Bug 1305202 - Use NullString() more and remove superfluous Truncates(). r=smaug

This commit is contained in:
Thomas Wisniewski
2016-09-23 21:10:01 -04:00
parent 383e0bd222
commit 2f1accbc40
10 changed files with 6 additions and 28 deletions

View File

@@ -565,14 +565,12 @@ nsHtml5TreeOperation::AppendDoctypeToDocument(nsIAtom* aName,
// Adapted from nsXMLContentSink
// Create a new doctype node
nsCOMPtr<nsIDOMDocumentType> docType;
nsAutoString voidString;
voidString.SetIsVoid(true);
NS_NewDOMDocumentType(getter_AddRefs(docType),
aBuilder->GetNodeInfoManager(),
aName,
aPublicId,
aSystemId,
voidString);
NullString());
NS_ASSERTION(docType, "Doctype creation failed.");
nsCOMPtr<nsIContent> asContent = do_QueryInterface(docType);
return AppendToDocument(asContent, aBuilder);