Closed
Bug 810103
Opened 12 years ago
Closed 12 years ago
Make nsCSSStyleSheet::mRuleCollection into an nsRefPtr
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(1 file)
4.22 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•12 years ago
|
||
At some point this will need to be cycle-collected (not least when it gets switched to WebIDL bindings, right?).
Assignee | ||
Comment 2•12 years ago
|
||
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?
Comment 3•12 years ago
|
||
Sounds good to me!
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → continuation
Summary: nsCSSStyleSheet doesn't seem to need to traverse mRuleCollection → Make nsCSSStyleSheet::mRuleCollection into an nsRefPtr
Assignee | ||
Comment 4•12 years ago
|
||
Assignee | ||
Comment 5•12 years ago
|
||
Linux64 try run https://tbpl.mozilla.org/?tree=Try&rev=d74922c77919
Assignee | ||
Updated•12 years ago
|
Attachment #680714 -
Flags: review?(bzbarsky)
Comment 6•12 years ago
|
||
Comment on attachment 680714 [details] [diff] [review] refptrize, also remove pointless nullcheck r=me
Attachment #680714 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Thanks for the review! https://hg.mozilla.org/integration/mozilla-inbound/rev/77b383566a57
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/77b383566a57
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•