Closed Bug 1156099 Opened 11 years ago Closed 11 years ago

Mark the atom members of NodeInfo as nsCOMPtr's

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

Turns out I was wrong, and they are really owning references.
Assignee: nobody → ehsan
Attachment #8594516 - Flags: review?(amarchesini)
Comment on attachment 8594516 [details] [diff] [review] Mark the atom members of NodeInfo as nsCOMPtr's Review of attachment 8594516 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/NodeInfo.h @@ +268,4 @@ > int32_t mNamespaceID; > uint16_t mNodeType; // As defined by nsIDOMNode.nodeType > const nsAString* mNameString; > + nsCOMPtr<nsIAtom> mExtraName; // Only used by PIs and DocTypes Should you unlink/Traverse these nsIAtoms?
Attachment #8594516 - Flags: review?(amarchesini) → review+
(In reply to Andrea Marchesini (:baku) from comment #2) > ::: dom/base/NodeInfo.h > @@ +268,4 @@ > > int32_t mNamespaceID; > > uint16_t mNodeType; // As defined by nsIDOMNode.nodeType > > const nsAString* mNameString; > > + nsCOMPtr<nsIAtom> mExtraName; // Only used by PIs and DocTypes > > Should you unlink/Traverse these nsIAtoms? No, that shouldn't be needed, since these objects can't hold back references to us directly or indirectly.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: