Trying to fix for balsa orange (from the fix for bug 251025). Patch by bz, r/sr=peterv.

This commit is contained in:
peterv%propagandism.org 2005-09-12 09:18:48 +00:00
Родитель 8bcf86354a
Коммит 6a14cffd01
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -81,6 +81,8 @@ NS_NewCommentNode(nsIContent** aInstancePtrResult, nsIDocument *aOwnerDocument)
{
*aInstancePtrResult = nsnull;
// XXX We really want to pass the document to the constructor, but can't
// yet. See https://bugzilla.mozilla.org/show_bug.cgi?id=27382
nsCOMPtr<nsIContent> instance = new nsCommentNode(nsnull);
NS_ENSURE_TRUE(instance, NS_ERROR_OUT_OF_MEMORY);

Просмотреть файл

@ -143,6 +143,8 @@ NS_NewTextNode(nsITextContent** aInstancePtrResult,
{
*aInstancePtrResult = nsnull;
// XXX We really want to pass the document to the constructor, but can't
// yet. See https://bugzilla.mozilla.org/show_bug.cgi?id=27382
nsCOMPtr<nsITextContent> instance = new nsTextNode(nsnull);
NS_ENSURE_TRUE(instance, NS_ERROR_OUT_OF_MEMORY);
@ -306,7 +308,9 @@ NS_NewAttributeContent(nsIDocument *aOwnerDoc, PRInt32 aNameSpaceID,
*aResult = nsnull;
nsRefPtr<nsAttributeTextNode> textNode = new nsAttributeTextNode(aOwnerDoc);
// XXX We really want to pass the document to the constructor, but can't
// yet. See https://bugzilla.mozilla.org/show_bug.cgi?id=27382
nsRefPtr<nsAttributeTextNode> textNode = new nsAttributeTextNode(nsnull);
NS_ENSURE_TRUE(textNode, NS_ERROR_OUT_OF_MEMORY);
textNode->mListener =