diff --git a/content/xul/templates/src/nsXULTemplateBuilder.cpp b/content/xul/templates/src/nsXULTemplateBuilder.cpp index 1e89ebf9a4b..00c1f1b38c0 100644 --- a/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -845,7 +845,7 @@ RDFGenericBuilderImpl::PopulateWidgetItemSubtree(nsIContent *aTemplateRoot, nsIC } #endif - if ((tag == containmentAtom) && (nameSpaceID == kNameSpaceID_XUL)) + if ((tag == containmentAtom.get()) && (nameSpaceID == kNameSpaceID_XUL)) { if (NS_FAILED(rv = CreateResourceElement(nameSpaceID, containmentAtom, aValue, getter_AddRefs(treeGrandchild)))) diff --git a/rdf/content/src/nsRDFGenericBuilder.cpp b/rdf/content/src/nsRDFGenericBuilder.cpp index 1e89ebf9a4b..00c1f1b38c0 100644 --- a/rdf/content/src/nsRDFGenericBuilder.cpp +++ b/rdf/content/src/nsRDFGenericBuilder.cpp @@ -845,7 +845,7 @@ RDFGenericBuilderImpl::PopulateWidgetItemSubtree(nsIContent *aTemplateRoot, nsIC } #endif - if ((tag == containmentAtom) && (nameSpaceID == kNameSpaceID_XUL)) + if ((tag == containmentAtom.get()) && (nameSpaceID == kNameSpaceID_XUL)) { if (NS_FAILED(rv = CreateResourceElement(nameSpaceID, containmentAtom, aValue, getter_AddRefs(treeGrandchild)))) diff --git a/rdf/content/src/nsXULTemplateBuilder.cpp b/rdf/content/src/nsXULTemplateBuilder.cpp index 1e89ebf9a4b..00c1f1b38c0 100644 --- a/rdf/content/src/nsXULTemplateBuilder.cpp +++ b/rdf/content/src/nsXULTemplateBuilder.cpp @@ -845,7 +845,7 @@ RDFGenericBuilderImpl::PopulateWidgetItemSubtree(nsIContent *aTemplateRoot, nsIC } #endif - if ((tag == containmentAtom) && (nameSpaceID == kNameSpaceID_XUL)) + if ((tag == containmentAtom.get()) && (nameSpaceID == kNameSpaceID_XUL)) { if (NS_FAILED(rv = CreateResourceElement(nameSpaceID, containmentAtom, aValue, getter_AddRefs(treeGrandchild))))