Closed Bug 624722 Opened 14 years ago Closed 14 years ago

nsBidiPresUtils should participate in CC

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b10
Tracking Status
blocking2.0 --- final+

People

(Reporter: peterv, Assigned: peterv)

References

Details

(Keywords: memory-leak)

Attachments

(1 file)

It holds strong refs to nodes, and is owned by the nsPresContext which already participates.
Attached patch v1Splinter Review
Attachment #502796 - Flags: review?(ehsan)
Leak fix that blocks a blocker should probably block.
blocking2.0: --- → ?
Keywords: mlk
Comment on attachment 502796 [details] [diff] [review]
v1

Looks great!
Attachment #502796 - Flags: review?(ehsan)
Attachment #502796 - Flags: review+
Attachment #502796 - Flags: approval2.0?
This is OK. However, keeping state in nsBidiPresUtils is actually a bug. That state is local to each API call and should go away completely between calls, in which case there is no need for CC here.

Also, mContentToFrameIndex doesn't need to hold strong refs to content, as far as I can tell.
http://hg.mozilla.org/mozilla-central/rev/eab687bc329f
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b10
(In reply to comment #4)
> This is OK. However, keeping state in nsBidiPresUtils is actually a bug. That
> state is local to each API call and should go away completely between calls, in
> which case there is no need for CC here.
> 
> Also, mContentToFrameIndex doesn't need to hold strong refs to content, as far
> as I can tell.

I filed bug 624798 on this.
Thank you than you thank you!!

This patch indeed looks to be solving our leaks for both bug 567029 and bug 587503!
blocking2.0: ? → ---
blocking2.0: --- → ?
No longer blocks: 567029
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: