} #endif
nsresult nsPluginInstanceOwner::ScrollPositionDidChange(nsIScrollableView* aScrollable, nscoord aX, nscoord aY){#ifdef XP_MAC    if (mInstance != NULL) {        EventRecord scrollEvent;        InitializeEventRecord(&scrollEvent);        scrollEvent.what = nsPluginEventType_ScrollingEndsEvent;        nsPluginPort* pluginPort = GetPluginPort();        nsPluginEvent pluginEvent = { &scrollEvent, nsPluginPlatformWindowRef(pluginPort->port) };        PRBool eventHandled = PR_FALSE;        mInstance->HandleEvent(&pluginEvent, &eventHandled);        if (!eventHandled) {            nsRect bogus(0,0,0,0);            Paint(bogus, 0);     // send an update event to the plugin        }    }#endif    return NS_OK;}