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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file)
|
3.22 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
Turns out I was wrong, and they are really owning references.
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ehsan
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8594516 -
Flags: review?(amarchesini)
Comment 2•11 years ago
|
||
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+
| Assignee | ||
Comment 3•11 years ago
|
||
(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
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•