Closed
Bug 1182969
Opened 9 years ago
Closed 9 years ago
Use nsTHashTable::Iterator in accessible/
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(2 files)
10.54 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
8.00 KB,
patch
|
Details | Diff | Splinter Review |
Because iterators are so much nicer than enumerate functions. There are two occurrences of EnumerateEntries() in accessible/ to be dealt with.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8637654 -
Flags: review?(tbsaunde+mozbugs)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Here's a |diff -w| version of the patch that is a lot easier to read.
Comment 3•9 years ago
|
||
Comment on attachment 8637654 [details] [diff] [review] Use nsTHashTable::Iterator in accessible/ thanks, I'm swamped with a11y e10s so don't have time for cleaning stuff up :/ > // Process rendered text change notifications. >- mTextHash.EnumerateEntries(TextEnumerator, mDocument); >+ ProcessRenderedTextChangeNotifications(); > mTextHash.Clear(); it might make more sense for that to be part of ProcessRenderedText, but up to you.
Attachment #8637654 -
Flags: review?(tbsaunde+mozbugs) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Thank you for the fast review.
> it might make more sense for that to be part of ProcessRenderedText, but up
> to you.
In this case I left it as a separate function because the loop body was large, but I'm happy to inline it and will do so.
https://hg.mozilla.org/mozilla-central/rev/51afd4c6a44e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•