Closed Bug 1186786 Opened 9 years ago Closed 9 years ago

Replace nsBaseHashtable::EnumerateRead() calls in accessible/ with iterators

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1186785 +++

Because iterators are so much nicer than enumerate functions.

There are four occurrences of EnumerateRead() in this directory.

A note to the assignee: to preserve existing behaviour, you should probably use
nsBaseHashtable::Iterator::UserData() rather than nsBaseHashtable::Iterator::Data(). (The latter should be used when replacing nsBaseHashtable::Enumerate()).
I added a comment about the unusual nature of DocManager::ClearDocCache().
Please let me know if I misunderstood how it works.
Attachment #8675977 - Flags: review?(tbsaunde+mozbugs)
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Comment on attachment 8675977 [details] [diff] [review]
Replace nsBaseHashtable::EnumerateRead() calls in accessible/ with iterators

I guess it may be possible to cleanup the document shutdown handling and maybe some of the null checking, but this all seems correct.

sorry about the lag.
Attachment #8675977 - Flags: review?(tbsaunde+mozbugs) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a1e89df904b953006be78880dbe99ad262c5d6a
Bug 1186786 - Replace nsBaseHashtable::EnumerateRead() calls in accessible/ with iterators. r=tbsaunde.
https://hg.mozilla.org/mozilla-central/rev/9a1e89df904b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: