From 15fcdb30cf7b84f9930e42a2afb6190c4656f736 Mon Sep 17 00:00:00 2001 From: "rjc%netscape.com" Date: Thu, 22 Jul 1999 00:49:50 +0000 Subject: [PATCH] Set empty="false" attribute even if container is closed. git-svn-id: svn://10.0.0.236/trunk@40556 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp | 4 ++++ mozilla/rdf/content/src/nsRDFGenericBuilder.cpp | 4 ++++ mozilla/rdf/content/src/nsXULTemplateBuilder.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp index 72365d34fb2..5c39b9c3633 100644 --- a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -2082,6 +2082,10 @@ RDFGenericBuilderImpl::CreateContainerContents(nsIContent* aElement, nsIRDFResou // "containment" arcs out of the element's resource. nsresult rv; + // set the empty attribute to false even if the container is closed + nsAutoString emptyVal("false"); + aElement->SetAttribute(kNameSpaceID_None, kEmptyAtom, emptyVal, PR_TRUE); + // See if the item is even "open". If not, then just pretend it // doesn't have _any_ contents. We check this _before_ checking // the contents-generated attribute so that we don't eagerly set diff --git a/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp b/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp index 72365d34fb2..5c39b9c3633 100644 --- a/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp +++ b/mozilla/rdf/content/src/nsRDFGenericBuilder.cpp @@ -2082,6 +2082,10 @@ RDFGenericBuilderImpl::CreateContainerContents(nsIContent* aElement, nsIRDFResou // "containment" arcs out of the element's resource. nsresult rv; + // set the empty attribute to false even if the container is closed + nsAutoString emptyVal("false"); + aElement->SetAttribute(kNameSpaceID_None, kEmptyAtom, emptyVal, PR_TRUE); + // See if the item is even "open". If not, then just pretend it // doesn't have _any_ contents. We check this _before_ checking // the contents-generated attribute so that we don't eagerly set diff --git a/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp b/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp index 72365d34fb2..5c39b9c3633 100644 --- a/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp +++ b/mozilla/rdf/content/src/nsXULTemplateBuilder.cpp @@ -2082,6 +2082,10 @@ RDFGenericBuilderImpl::CreateContainerContents(nsIContent* aElement, nsIRDFResou // "containment" arcs out of the element's resource. nsresult rv; + // set the empty attribute to false even if the container is closed + nsAutoString emptyVal("false"); + aElement->SetAttribute(kNameSpaceID_None, kEmptyAtom, emptyVal, PR_TRUE); + // See if the item is even "open". If not, then just pretend it // doesn't have _any_ contents. We check this _before_ checking // the contents-generated attribute so that we don't eagerly set