void csEventHandlerRegistry::ReleaseID (iEventHandler *handler)
{
  mutex.ReadLock();
  csHandlerID id = handlerToID.Get (handler, CS_HANDLER_INVALID);
  mutex.ReadUnlock();
  CS_ASSERT(id != CS_HANDLER_INVALID);
  ReleaseID (id);
}
Example #2
0
void
MsaaIdGenerator::ReleaseID(NotNull<sdnAccessible*> aSdnAcc)
{
  Maybe<uint32_t> id = aSdnAcc->ReleaseUniqueID();
  if (id.isSome()) {
    DebugOnly<bool> released = ReleaseID(id.value());
    MOZ_ASSERT(released);
  }
}
Example #3
0
void
MsaaIdGenerator::ReleaseID(NotNull<AccessibleWrap*> aAccWrap)
{
  if (!ReleaseID(aAccWrap->GetExistingID())) {
    // This may happen if chrome holds a proxy whose ID was originally generated
    // by a content process. Since ReleaseID only has meaning in the process
    // that originally generated that ID, we ignore ReleaseID calls for any ID
    // that did not come from the current process.
    MOZ_ASSERT(aAccWrap->IsProxy());
  }
}