const nsStyleDisplay* disp = (const nsStyleDisplay*)mStyleContext->GetStyleData(eStyleStruct_Display); if ((disp != nsnull) && !disp->IsVisibleOrCollapsed()) { return NS_OK; }
void nsPluginInstanceOwner::Paint(const nsRect& aDirtyRect, PRUint32 ndc){#ifdef XP_MAC	if (mInstance != NULL) {		nsPluginPort* pluginPort = GetPluginPort();		EventRecord updateEvent;		::OSEventAvail(0, &updateEvent);		updateEvent.what = updateEvt;		updateEvent.message = UInt32(pluginPort->port);				nsPluginEvent pluginEvent = { &updateEvent, nsPluginPlatformWindowRef(pluginPort->port) };		PRBool eventHandled = PR_FALSE;		mInstance->HandleEvent(&pluginEvent, &eventHandled);	}#endif//~~~#ifdef XP_WIN	nsPluginEvent pluginEvent;  pluginEvent.event = 0x000F; //!!! This is bad, but is it better to include <windows.h> for WM_PAINT only?  pluginEvent.wParam = (uint32)ndc;  pluginEvent.lParam = nsnull;	PRBool eventHandled = PR_FALSE;	mInstance->HandleEvent(&pluginEvent, &eventHandled);#endif}