From 291d836dc5029e875bb1e935ad97fc079d83af61 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 17 Feb 1999 18:58:05 +0000 Subject: [PATCH] More tweaks to the broadcasting stuff. --- content/xul/content/src/nsXULElement.cpp | 2 +- content/xul/document/src/nsXULDocument.cpp | 6 +++--- rdf/content/src/nsRDFElement.cpp | 2 +- rdf/content/src/nsXULDocument.cpp | 6 +++--- rdf/content/src/nsXULElement.cpp | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/content/xul/content/src/nsXULElement.cpp b/content/xul/content/src/nsXULElement.cpp index 9eac9835078..81b5e66e8fc 100644 --- a/content/xul/content/src/nsXULElement.cpp +++ b/content/xul/content/src/nsXULElement.cpp @@ -1786,7 +1786,7 @@ RDFElementImpl::AddBroadcastListener(const nsString& attr, nsIDOMNode* aNode) if (attrPresent) { // Set the attribute - pListener->SetAttribute(namespaceID, kAtom, attrValue, PR_FALSE); + pListener->SetAttribute(namespaceID, kAtom, attrValue, PR_TRUE); } else { diff --git a/content/xul/document/src/nsXULDocument.cpp b/content/xul/document/src/nsXULDocument.cpp index cf7d7a65348..6541c5a61be 100644 --- a/content/xul/document/src/nsXULDocument.cpp +++ b/content/xul/document/src/nsXULDocument.cpp @@ -1869,9 +1869,9 @@ XULDocumentImpl::CreateContents(nsIContent* aElement) nsString attributeValue; PRInt32 namespaceID = -1; - //nsCOMPtr pXMLContent(pChildContent); - //if (pXMLContent) - pChildContent->GetNameSpaceID(namespaceID); + + + pChildContent->GetNameSpaceID(namespaceID); pChildContent->GetAttribute(namespaceID, pElementAtom, diff --git a/rdf/content/src/nsRDFElement.cpp b/rdf/content/src/nsRDFElement.cpp index 9eac9835078..81b5e66e8fc 100644 --- a/rdf/content/src/nsRDFElement.cpp +++ b/rdf/content/src/nsRDFElement.cpp @@ -1786,7 +1786,7 @@ RDFElementImpl::AddBroadcastListener(const nsString& attr, nsIDOMNode* aNode) if (attrPresent) { // Set the attribute - pListener->SetAttribute(namespaceID, kAtom, attrValue, PR_FALSE); + pListener->SetAttribute(namespaceID, kAtom, attrValue, PR_TRUE); } else { diff --git a/rdf/content/src/nsXULDocument.cpp b/rdf/content/src/nsXULDocument.cpp index cf7d7a65348..6541c5a61be 100644 --- a/rdf/content/src/nsXULDocument.cpp +++ b/rdf/content/src/nsXULDocument.cpp @@ -1869,9 +1869,9 @@ XULDocumentImpl::CreateContents(nsIContent* aElement) nsString attributeValue; PRInt32 namespaceID = -1; - //nsCOMPtr pXMLContent(pChildContent); - //if (pXMLContent) - pChildContent->GetNameSpaceID(namespaceID); + + + pChildContent->GetNameSpaceID(namespaceID); pChildContent->GetAttribute(namespaceID, pElementAtom, diff --git a/rdf/content/src/nsXULElement.cpp b/rdf/content/src/nsXULElement.cpp index 9eac9835078..81b5e66e8fc 100644 --- a/rdf/content/src/nsXULElement.cpp +++ b/rdf/content/src/nsXULElement.cpp @@ -1786,7 +1786,7 @@ RDFElementImpl::AddBroadcastListener(const nsString& attr, nsIDOMNode* aNode) if (attrPresent) { // Set the attribute - pListener->SetAttribute(namespaceID, kAtom, attrValue, PR_FALSE); + pListener->SetAttribute(namespaceID, kAtom, attrValue, PR_TRUE); } else {