Closed Bug 1192353 Opened 9 years ago Closed 9 years ago

make HyperTextProxyAccessibleWrap inherit from HyperTextAccessibleWrap

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: tbsaunde, Assigned: tbsaunde)

Details

Attachments

(1 file)

This is rather unfortunate, AccessibleWrap itself wastes a fair amount of space
when it just stores a pointer to a proxy, and this makes it waste even more.
However this is rather necessary for now because we need to be able to downcast
classes such as ia2AccessibleText to one type that works both when the
accessible is pointing to a proxy and when it is not.  That means
HyperTextAccessibleWrap and HyperTextProxyAccessibleWrap need to have the same
layout.
Comment on attachment 8645082 [details] [diff] [review]
make HyperTextProxyAccessibleWrap inherit from HyperTextAccessibleWrap

Review of attachment 8645082 [details] [diff] [review]:
-----------------------------------------------------------------

::: accessible/windows/ProxyWrappers.h
@@ +34,5 @@
>    HyperTextProxyAccessibleWrap(ProxyAccessible* aProxy) :
> +    HyperTextAccessibleWrap(nullptr, nullptr)
> +  {
> +    mType = eProxyType;
> +    mBits.proxy = aProxy;

How do we remember to update this if we update ProxyAccessibleWrap?
Attachment #8645082 - Flags: review?(dbolter) → review+
(In reply to David Bolter [:davidb] from comment #2)
> Comment on attachment 8645082 [details] [diff] [review]
> make HyperTextProxyAccessibleWrap inherit from HyperTextAccessibleWrap
> 
> Review of attachment 8645082 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: accessible/windows/ProxyWrappers.h
> @@ +34,5 @@
> >    HyperTextProxyAccessibleWrap(ProxyAccessible* aProxy) :
> > +    HyperTextAccessibleWrap(nullptr, nullptr)
> > +  {
> > +    mType = eProxyType;
> > +    mBits.proxy = aProxy;
> 
> How do we remember to update this if we update ProxyAccessibleWrap?

update in what way?  The only way you'd necesarrily need to change both is if you reorganize the IsProxy() / mBits.proxy stuff, in which case obviously you need to look at everything that touches that.
https://hg.mozilla.org/mozilla-central/rev/6d2b9ae330a2
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Assignee: nobody → tbsaunde+mozbugs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: