mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1192353 - make HyperTextProxyAccessibleWrap inherit from
HyperTextAccessibleWrap r=davidb 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.
This commit is contained in:
parent
1fd2102b9b
commit
ae892e0614
@ -29,12 +29,16 @@ class ProxyAccessibleWrap : public AccessibleWrap
|
||||
}
|
||||
};
|
||||
|
||||
class HyperTextProxyAccessibleWrap : public ProxyAccessibleWrap,
|
||||
public ia2AccessibleEditableText,
|
||||
public ia2AccessibleHypertext
|
||||
class HyperTextProxyAccessibleWrap : public HyperTextAccessibleWrap
|
||||
{
|
||||
HyperTextProxyAccessibleWrap(ProxyAccessible* aProxy) :
|
||||
ProxyAccessibleWrap(aProxy) {}
|
||||
HyperTextAccessibleWrap(nullptr, nullptr)
|
||||
{
|
||||
mType = eProxyType;
|
||||
mBits.proxy = aProxy;
|
||||
}
|
||||
|
||||
virtual void Shutdown() override { mBits.proxy = nullptr; }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user