if (mInstance != NULL) {
if (mWidget != NULL) {
nsEventStatus nsPluginInstanceOwner::ProcessEvent(const nsGUIEvent& anEvent){	nsEventStatus rv = nsEventStatus_eIgnore;#ifdef XP_MAC	if (mInstance != NULL) {		EventRecord* event = (EventRecord*)anEvent.nativeMsg;		if (event == NULL || event->what == nullEvent) {			EventRecord macEvent;			GUItoMacEvent(anEvent, macEvent);			event = &macEvent;		}		nsPluginPort* port = (nsPluginPort*)mWidget->GetNativeData(NS_NATIVE_PLUGIN_PORT);		nsPluginEvent pluginEvent = { event, nsPluginPlatformWindowRef(port->port) };		PRBool eventHandled = PR_FALSE;		mInstance->HandleEvent(&pluginEvent, &eventHandled);		if (eventHandled)			rv = nsEventStatus_eConsumeNoDefault;	}#endif//~~~#ifdef XP_WIN		nsPluginEvent * pPluginEvent = (nsPluginEvent *)anEvent.nativeMsg;		PRBool eventHandled = PR_FALSE;		mInstance->HandleEvent(pPluginEvent, &eventHandled);		if (eventHandled)			rv = nsEventStatus_eConsumeNoDefault;#endif  return rv;}