diff --git a/accessible/base/AccEvent.h b/accessible/base/AccEvent.h index 416224278905..6a4f46e1c67d 100644 --- a/accessible/base/AccEvent.h +++ b/accessible/base/AccEvent.h @@ -531,7 +531,7 @@ public: nsIAtom* GetAttribute() const { return mAttribute; } private: - nsCOMPtr mAttribute; + RefPtr mAttribute; virtual ~AccObjectAttrChangedEvent() { } }; diff --git a/caps/BasePrincipal.h b/caps/BasePrincipal.h index 44e874b94fb7..f31bfc78a42e 100644 --- a/caps/BasePrincipal.h +++ b/caps/BasePrincipal.h @@ -158,8 +158,8 @@ private: CreateCodebasePrincipal(nsIURI* aURI, const OriginAttributes& aAttrs, const nsACString& aOriginNoSuffix); - nsCOMPtr mOriginNoSuffix; - nsCOMPtr mOriginSuffix; + RefPtr mOriginNoSuffix; + RefPtr mOriginSuffix; OriginAttributes mOriginAttributes; PrincipalKind mKind; diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index e1c89fb528af..f1a494164a6c 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -363,7 +363,7 @@ ForEachPing(nsIContent* aContent, ForEachPingCallback aCallback, void* aClosure) return; } - nsCOMPtr pingAtom = NS_Atomize("ping"); + RefPtr pingAtom = NS_Atomize("ping"); if (!pingAtom) { return; } diff --git a/dom/base/AnonymousContent.cpp b/dom/base/AnonymousContent.cpp index 448ce0ad1afe..53beaf0dd0cf 100644 --- a/dom/base/AnonymousContent.cpp +++ b/dom/base/AnonymousContent.cpp @@ -187,7 +187,7 @@ Element* AnonymousContent::GetElementById(const nsAString& aElementId) { // This can be made faster in the future if needed. - nsCOMPtr elementId = NS_Atomize(aElementId); + RefPtr elementId = NS_Atomize(aElementId); for (nsIContent* node = mContentNode; node; node = node->GetNextNode(mContentNode)) { if (!node->IsElement()) { diff --git a/dom/base/Attr.cpp b/dom/base/Attr.cpp index 58d8fdf3d1c0..84ce19ea2dd5 100644 --- a/dom/base/Attr.cpp +++ b/dom/base/Attr.cpp @@ -164,7 +164,7 @@ Attr::GetValue(nsAString& aValue) { Element* element = GetElement(); if (element) { - nsCOMPtr nameAtom = mNodeInfo->NameAtom(); + RefPtr nameAtom = mNodeInfo->NameAtom(); element->GetAttr(mNodeInfo->NamespaceID(), nameAtom, aValue); } else { @@ -183,7 +183,7 @@ Attr::SetValue(const nsAString& aValue, ErrorResult& aRv) return; } - nsCOMPtr nameAtom = mNodeInfo->NameAtom(); + RefPtr nameAtom = mNodeInfo->NameAtom(); aRv = element->SetAttr(mNodeInfo->NamespaceID(), nameAtom, mNodeInfo->GetPrefixAtom(), diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp index 6252decb32de..f8381f7ec90d 100644 --- a/dom/base/CustomElementRegistry.cpp +++ b/dom/base/CustomElementRegistry.cpp @@ -225,8 +225,8 @@ CustomElementDefinition* CustomElementRegistry::LookupCustomElementDefinition(const nsAString& aLocalName, const nsAString* aIs) const { - nsCOMPtr localNameAtom = NS_Atomize(aLocalName); - nsCOMPtr typeAtom = aIs ? NS_Atomize(*aIs) : localNameAtom; + RefPtr localNameAtom = NS_Atomize(aLocalName); + RefPtr typeAtom = aIs ? NS_Atomize(*aIs) : localNameAtom; CustomElementDefinition* data = mCustomDefinitions.GetWeak(typeAtom); if (data && data->mLocalName == localNameAtom) { @@ -261,7 +261,7 @@ CustomElementRegistry::RegisterUnresolvedElement(Element* aElement, nsIAtom* aTy // Candidate may be a custom element through extension, // in which case the custom element type name will not // match the element tag name. e.g.