Closed Bug 810103 Opened 9 years ago Closed 9 years ago
CSSStyle Sheet::m Rule Collection into an ns Ref Ptr
In the traverse function for nsCSSStyleSheet I see this: NS_IMPL_CYCLE_COLLECTION_TRAVERSE_RAWPTR(mRuleCollection) mRuleCollection has type |CSSRuleListImpl*|, and CSSRuleListImpl doesn't seem to be a cycle collected class, so I'm not sure why we need to have that traverse.
At some point this will need to be cycle-collected (not least when it gets switched to WebIDL bindings, right?).
Sure. Maybe I could convert mRuleCollection to a refPtr to get rid of the weird TRAVESER_RAWPTR instead if you are worried about forgetting to add the field again later?
Sounds good to me!
Assignee: nobody → continuation
Summary: nsCSSStyleSheet doesn't seem to need to traverse mRuleCollection → Make nsCSSStyleSheet::mRuleCollection into an nsRefPtr
Linux64 try run https://tbpl.mozilla.org/?tree=Try&rev=d74922c77919
Attachment #680714 - Flags: review?(bzbarsky)
Comment on attachment 680714 [details] [diff] [review] refptrize, also remove pointless nullcheck r=me
Attachment #680714 - Flags: review?(bzbarsky) → review+
Thanks for the review! https://hg.mozilla.org/integration/mozilla-inbound/rev/77b383566a57
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.