зеркало из https://github.com/mozilla/gecko-dev.git
Trying to fix for balsa orange (from the fix for bug 251025). Patch by bz, r/sr=peterv.
This commit is contained in:
Родитель
8bcf86354a
Коммит
6a14cffd01
|
@ -81,6 +81,8 @@ NS_NewCommentNode(nsIContent** aInstancePtrResult, nsIDocument *aOwnerDocument)
|
||||||
{
|
{
|
||||||
*aInstancePtrResult = nsnull;
|
*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);
|
nsCOMPtr<nsIContent> instance = new nsCommentNode(nsnull);
|
||||||
NS_ENSURE_TRUE(instance, NS_ERROR_OUT_OF_MEMORY);
|
NS_ENSURE_TRUE(instance, NS_ERROR_OUT_OF_MEMORY);
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,8 @@ NS_NewTextNode(nsITextContent** aInstancePtrResult,
|
||||||
{
|
{
|
||||||
*aInstancePtrResult = nsnull;
|
*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);
|
nsCOMPtr<nsITextContent> instance = new nsTextNode(nsnull);
|
||||||
NS_ENSURE_TRUE(instance, NS_ERROR_OUT_OF_MEMORY);
|
NS_ENSURE_TRUE(instance, NS_ERROR_OUT_OF_MEMORY);
|
||||||
|
|
||||||
|
@ -306,7 +308,9 @@ NS_NewAttributeContent(nsIDocument *aOwnerDoc, PRInt32 aNameSpaceID,
|
||||||
|
|
||||||
*aResult = nsnull;
|
*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);
|
NS_ENSURE_TRUE(textNode, NS_ERROR_OUT_OF_MEMORY);
|
||||||
|
|
||||||
textNode->mListener =
|
textNode->mListener =
|
||||||
|
|
Загрузка…
Ссылка в новой задаче