Closed Bug 524696 Opened 15 years ago Closed 15 years ago

Use nsTArray<nsRefPtr<nsAccEvent> > for mEventsToFire

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
Addressed Bug 522847 comment 11 BTW: Do we have to have so many QueryAccessible* in nsAccUtils.h? Why not just use QueryObject template?
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #408620 - Flags: review?(surkov.alexander)
Why not use nsTArray< nsRefPtr<nsAccEvent> >?
(In reply to comment #1) > BTW: Do we have to have so many QueryAccessible* in nsAccUtils.h? > Why not just use QueryObject template? QueryObject was created later than all of this QueryAccessible*
Ginn, could you use diff -p to include function names and answer Boris's comment?
Attached patch patch v2Splinter Review
Use nsTArray<nsRefPtr<nsAccEvent> > for mEventsToFire, and use nsAccEvent* in nsAccessibleEventData.cpp for performance.
Attachment #408620 - Attachment is obsolete: true
Attachment #408805 - Flags: review?(surkov.alexander)
Attachment #408620 - Flags: review?(surkov.alexander)
Attachment #408805 - Flags: review?(surkov.alexander) → review+
Comment on attachment 408805 [details] [diff] [review] patch v2 looks ok, r=me sr from bz?
Comment on attachment 408805 [details] [diff] [review] patch v2 I don't think you need the "// AddRefs" comment. Other than that, looks good.
Attachment #408805 - Flags: superreview+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: Use nsTArray<nsAccEvent *> for mEventsToFire → Use nsTArray<nsRefPtr<nsAccEvent> > for mEventsToFire
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: