Closed Bug 1371492 Opened 7 years ago Closed 7 years ago

Use AutoTArray to save current listener in NotifySelectionListeners

Categories

(Core :: DOM: Selection, enhancement)

55 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Actually, we use nsCOMArray for mSelectionListeners. NotifySelectionListeners saves current listeners to another nsCOMArray then use it for observing. When I debug it, array length is mostly ~5, and nsCOMArray uses malloc according to profiler. So since array length is small, we should use AutoTArray instead.
Blocks: 1346723
Comment on attachment 8876008 [details] Bug 1371492 - Use AutoTArray to save current listener in NotifySelectionListeners. I'll defer to smaug on this one.
Attachment #8876008 - Flags: review?(mats) → review?(bugs)
Comment on attachment 8876008 [details] Bug 1371492 - Use AutoTArray to save current listener in NotifySelectionListeners. https://reviewboard.mozilla.org/r/147450/#review151862
Attachment #8876008 - Flags: review?(bugs) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/11e9775fd375 Use AutoTArray to save current listener in NotifySelectionListeners. r=smaug
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: