NS_PRECONDITION(nsnull != mThreadEventQueue, "EventQueue for thread is null"); NS_ADDREF(mThreadEventQueue); return mThreadEventQueue;
NS_ENSURE_ARG_POINTER(aQueue); *aQueue = 0;  nsCOMPtr<nsIEventQueueService> eventService(do_GetService(NS_EVENTQUEUESERVICE_CONTRACTID)); if (eventService) eventService->GetThreadEventQueue(mThread, aQueue); return *aQueue ? NS_OK : NS_ERROR_FAILURE;
nsIEventQueue* nsWebShell::GetEventQueue(void){  NS_PRECONDITION(nsnull != mThreadEventQueue, "EventQueue for thread is null");  NS_ADDREF(mThreadEventQueue);  return mThreadEventQueue;}