Closed Bug 739190 Opened 13 years ago Closed 13 years ago

change AppendTarget(nsIContent* aContent) to take nsDocAccessible* argument

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: surkov, Assigned: capella)

References

Details

(Whiteboard: [good first bug][mentor=eitan@monotonous.org][lang=c++])

Attachments

(1 file, 1 obsolete file)

change AppendTarget(nsIContent* aContent) (see http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/Relation.h#123) to AppendTarget(nsDocAccessible* aDocument, nsIContent* aContent) and use nsDocAccessible to get an accessible for the content instead GetAccService().
Attached patch patch (obsolete) — Splinter Review
Need some comments, thanks!
Attachment #611287 - Flags: feedback?
Comment on attachment 611287 [details] [diff] [review] patch > if (aContent) >- AppendTarget(GetAccService()->GetAccessible(aContent, nsnull)); >+ AppendTarget(aDocument->GetAccessible(aContent, nsnull)); nsDocAccessible::GetAccessible() only takes one argument. you might also want to update the callers.
Attachment #611287 - Flags: feedback?
Hi everyone! Can I continue what Kaigi began ? If it's permitted, so I will recapitulate, the bug is about fixing AppendTarget as Surkov detailed in the first comment, and after Kaigi's patch and Trevor's comment the problem was fixed a little bit but we should update nsDocAccessible::GetAccessible(), right? thanks!
Attached patch Patch (v1)Splinter Review
Requesting feedback from mentor ... This patch builds and mochitests successfully locally.
Assignee: nobody → markcapella
Attachment #611287 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #621364 - Flags: feedback?(eitan)
Comment on attachment 621364 [details] [diff] [review] Patch (v1) Review of attachment 621364 [details] [diff] [review]: ----------------------------------------------------------------- Looks straightforward. Thanks!
Attachment #621364 - Flags: feedback?(eitan) → feedback+
Comment on attachment 621364 [details] [diff] [review] Patch (v1) Thank you !
Attachment #621364 - Flags: review?(surkov.alexander)
Comment on attachment 621364 [details] [diff] [review] Patch (v1) Review of attachment 621364 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/src/base/Relation.h @@ +119,5 @@ > /** > * Append the one accessible for this content node to the set of related > * accessibles. > */ > + inline void AppendTarget(nsDocAccessible* aDocument, nsIContent* aContent) nit: you don't need 'inline' (i'll fix it before landing)
Attachment #621364 - Flags: review?(surkov.alexander) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: