Closed
Bug 1192353
Opened 9 years ago
Closed 9 years ago
make HyperTextProxyAccessibleWrap inherit from HyperTextAccessibleWrap
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: tbsaunde, Assigned: tbsaunde)
Details
Attachments
(1 file)
1.27 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8645082 -
Flags: review?(dbolter)
Comment 2•9 years ago
|
||
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+
Assignee | ||
Comment 3•9 years ago
|
||
(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
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Updated•7 years ago
|
Assignee: nobody → tbsaunde+mozbugs
You need to log in
before you can comment on or make changes to this bug.
Description
•