printf("%p ~RevokePostedEvents() start\n", this);
PRINTF(("%p ~RevokePostedEvents() start\n", this));
FrameManager::RevokePostedEvents(){#ifdef NOISY_EVENTS  printf("%p ~RevokePostedEvents() start\n", this);#endif  if (mPostedEvents) {    mPostedEvents = nsnull;    // Revoke any events in the event queue that are owned by us    nsIEventQueueService* eventService;    nsresult              rv;    rv = nsServiceManager::GetService(kEventQueueServiceCID,                                      kIEventQueueServiceIID,                                      (nsISupports **)&eventService);    if (NS_SUCCEEDED(rv)) {      nsCOMPtr<nsIEventQueue> eventQueue;      rv = eventService->GetThreadEventQueue(NS_CURRENT_THREAD,                                              getter_AddRefs(eventQueue));      nsServiceManager::ReleaseService(kEventQueueServiceCID, eventService);      if (NS_SUCCEEDED(rv) && eventQueue) {        eventQueue->RevokeEvents(this);      }    }  }#ifdef NOISY_EVENTS  printf("%p ~RevokePostedEvents() end\n", this);#endif}