Closed Bug 759817 Opened 12 years ago Closed 12 years ago

Repair an inheritance issue

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: capella, Assigned: capella)

Details

(Whiteboard: [lang=c++])

Attachments

(1 file)

accessible/src/html/nsHTMLCanvasAccessible.h defines class nsHTMLCanvasAccessible that inherits from HyperTextAccessible.

This needs to be changed to be inherited from HyperTextAccessibleWrap.

>  /**
>   * HTML canvas accessible (html:canvas).
>   */
> +class nsHTMLCanvasAccessible : public HyperTextAccessible
Attached patch Patch (v1)Splinter Review
Following up with leftover "to-do".
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Attachment #632119 - Flags: review?(surkov.alexander)
Comment on attachment 632119 [details] [diff] [review]
Patch (v1)

> HTMLCanvasAccessible::
>   HTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc) :
>-  HyperTextAccessible(aContent, aDoc)
>+  HyperTextAccessibleWrap(aContent, aDoc)
> {
> }

since its trivial you could consider inlining it while your here, but up to you.

> 
>+NS_IMPL_ISUPPORTS_INHERITED0(HTMLCanvasAccessible, HyperTextAccessible)

curious why you add this.
Attachment #632119 - Flags: review?(surkov.alexander) → review+
build failed without it ... took a shot - put it in, build worked ... want me to get you the error code?
(In reply to Mark Capella [:capella] from comment #3)
> build failed without it ... took a shot - put it in, build worked ... want
> me to get you the error code?

if its not too hard I'm curious, but I don't think its a huge deal.
It failed in the build / link step ... I was doing a side by side compare to HTMLListAccessible.cpp and found the macro was absent in HTMLCanvassAccessible, so I added it and basically got lucky.

http://pastebin.mozilla.org/1661090
https://hg.mozilla.org/mozilla-central/rev/5387220c0609
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: