void a11y::ProxyDestroyed(ProxyAccessible* aProxy) { AccessibleWrap* wrapper = reinterpret_cast<AccessibleWrap*>(aProxy->GetWrapper()); MOZ_ASSERT(wrapper); if (!wrapper) return; if (aProxy->IsDoc() && nsWinUtils::IsWindowEmulationStarted()) { aProxy->AsDoc()->SetEmulatedWindowHandle(nullptr); } wrapper->Shutdown(); aProxy->SetWrapper(0); wrapper->Release(); }
void a11y::ProxyDestroyed(ProxyAccessible* aProxy) { AccessibleWrap* wrapper = reinterpret_cast<AccessibleWrap*>(aProxy->GetWrapper()); // If aProxy is a document that was created, but // RecvPDocAccessibleConstructor failed then aProxy->GetWrapper() will be // null. if (!wrapper) { return; } wrapper->Shutdown(); aProxy->SetWrapper(0); wrapper->Release(); }
void a11y::ProxyDestroyed(ProxyAccessible* aProxy) { AccessibleWrap* wrapper = reinterpret_cast<AccessibleWrap*>(aProxy->GetWrapper()); // If aProxy is a document that was created, but // RecvPDocAccessibleConstructor failed then aProxy->GetWrapper() will be // null. if (!wrapper) return; if (aProxy->IsDoc() && nsWinUtils::IsWindowEmulationStarted()) { aProxy->AsDoc()->SetEmulatedWindowHandle(nullptr); } wrapper->Shutdown(); aProxy->SetWrapper(0); wrapper->Release(); }