diff --git a/content/xul/templates/src/nsXULTemplateBuilder.cpp b/content/xul/templates/src/nsXULTemplateBuilder.cpp index 6cf06f1b99cc..0f22e327df42 100644 --- a/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -2691,7 +2691,7 @@ RDFGenericBuilderImpl::IsOpen(nsIContent* aElement) if (nameSpaceID != kNameSpaceID_XUL) return PR_FALSE; - if (aElement == mRoot) + if (aElement == mRoot.get()) return PR_TRUE; nsAutoString value; @@ -2717,7 +2717,7 @@ RDFGenericBuilderImpl::IsElementInWidget(nsIContent* aElement) // Walk up the parent chain from us to the root and // see what we find. - if (aElement == mRoot) + if (aElement == mRoot.get()) return PR_TRUE; // walk up the tree until you find rootAtom @@ -2728,7 +2728,7 @@ RDFGenericBuilderImpl::IsElementInWidget(nsIContent* aElement) while (element) { - if (element.get() == mRoot) + if (element.get() == mRoot.get()) return PR_TRUE; // up to the parent... diff --git a/rdf/content/src/nsRDFGenericBuilder.cpp b/rdf/content/src/nsRDFGenericBuilder.cpp index 6cf06f1b99cc..0f22e327df42 100644 --- a/rdf/content/src/nsRDFGenericBuilder.cpp +++ b/rdf/content/src/nsRDFGenericBuilder.cpp @@ -2691,7 +2691,7 @@ RDFGenericBuilderImpl::IsOpen(nsIContent* aElement) if (nameSpaceID != kNameSpaceID_XUL) return PR_FALSE; - if (aElement == mRoot) + if (aElement == mRoot.get()) return PR_TRUE; nsAutoString value; @@ -2717,7 +2717,7 @@ RDFGenericBuilderImpl::IsElementInWidget(nsIContent* aElement) // Walk up the parent chain from us to the root and // see what we find. - if (aElement == mRoot) + if (aElement == mRoot.get()) return PR_TRUE; // walk up the tree until you find rootAtom @@ -2728,7 +2728,7 @@ RDFGenericBuilderImpl::IsElementInWidget(nsIContent* aElement) while (element) { - if (element.get() == mRoot) + if (element.get() == mRoot.get()) return PR_TRUE; // up to the parent... diff --git a/rdf/content/src/nsXULTemplateBuilder.cpp b/rdf/content/src/nsXULTemplateBuilder.cpp index 6cf06f1b99cc..0f22e327df42 100644 --- a/rdf/content/src/nsXULTemplateBuilder.cpp +++ b/rdf/content/src/nsXULTemplateBuilder.cpp @@ -2691,7 +2691,7 @@ RDFGenericBuilderImpl::IsOpen(nsIContent* aElement) if (nameSpaceID != kNameSpaceID_XUL) return PR_FALSE; - if (aElement == mRoot) + if (aElement == mRoot.get()) return PR_TRUE; nsAutoString value; @@ -2717,7 +2717,7 @@ RDFGenericBuilderImpl::IsElementInWidget(nsIContent* aElement) // Walk up the parent chain from us to the root and // see what we find. - if (aElement == mRoot) + if (aElement == mRoot.get()) return PR_TRUE; // walk up the tree until you find rootAtom @@ -2728,7 +2728,7 @@ RDFGenericBuilderImpl::IsElementInWidget(nsIContent* aElement) while (element) { - if (element.get() == mRoot) + if (element.get() == mRoot.get()) return PR_TRUE; // up to the parent...