зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1694865 part 8: Remove some dead code from AccessibleWrap. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D112939
This commit is contained in:
Родитель
13a18247fe
Коммит
4667179d00
|
@ -28,17 +28,9 @@ using namespace mozilla::a11y;
|
|||
* see http://lxr.mozilla.org/seamonkey/source/accessible/accessible-docs.html
|
||||
*/
|
||||
|
||||
//#define DEBUG_LEAKS
|
||||
|
||||
#ifdef DEBUG_LEAKS
|
||||
static gAccessibles = 0;
|
||||
#endif
|
||||
|
||||
StaticAutoPtr<nsTArray<AccessibleWrap::HandlerControllerData>>
|
||||
AccessibleWrap::sHandlerControllers;
|
||||
|
||||
static const int32_t kIEnumVariantDisconnected = -1;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// AccessibleWrap
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -154,20 +146,6 @@ nsresult AccessibleWrap::HandleAccEvent(AccEvent* aEvent) {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
DocRemoteAccessibleWrap* AccessibleWrap::DocProxyWrapper() const {
|
||||
MOZ_ASSERT(IsProxy());
|
||||
|
||||
RemoteAccessible* proxy = Proxy();
|
||||
if (!proxy) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
AccessibleWrap* acc = WrapperFor(proxy->Document());
|
||||
MOZ_ASSERT(acc->IsDoc());
|
||||
|
||||
return static_cast<DocRemoteAccessibleWrap*>(acc);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// AccessibleWrap
|
||||
|
||||
|
|
|
@ -39,9 +39,6 @@ class AccessibleWrap : public LocalAccessible, public MsaaAccessible {
|
|||
public: // IUnknown methods - see iunknown.h for documentation
|
||||
STDMETHODIMP QueryInterface(REFIID, void**) override;
|
||||
|
||||
// Return the registered OLE class ID of this object's CfDataObj.
|
||||
CLSID GetClassID() const;
|
||||
|
||||
// LocalAccessible
|
||||
virtual nsresult HandleAccEvent(AccEvent* aEvent) override;
|
||||
virtual void Shutdown() override;
|
||||
|
@ -80,11 +77,6 @@ class AccessibleWrap : public LocalAccessible, public MsaaAccessible {
|
|||
protected:
|
||||
virtual ~AccessibleWrap() = default;
|
||||
|
||||
/**
|
||||
* Return the wrapper for the document's proxy.
|
||||
*/
|
||||
DocRemoteAccessibleWrap* DocProxyWrapper() const;
|
||||
|
||||
struct HandlerControllerData final {
|
||||
HandlerControllerData(DWORD aPid, RefPtr<IHandlerControl>&& aCtrl)
|
||||
: mPid(aPid), mCtrl(std::move(aCtrl)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче