if (mPluginWindow.type == nsPluginWindowType_Drawable) {
if (mPluginWindow && mPluginWindow->type == nsPluginWindowType_Drawable) {
nsPluginInstanceOwner::MouseDown(nsIDOMEvent* aMouseEvent){#ifndef XP_MAC  if (nsPluginWindowType_Window == mPluginWindow.type)    return NS_ERROR_FAILURE; // means consume event  // continue only for cases without child window#endif  // if the plugin is windowless, we need to set focus ourselves  // otherwise, we might not get key events  if (mPluginWindow.type == nsPluginWindowType_Drawable) {    nsCOMPtr<nsIContent> content;    mOwner->GetContent(getter_AddRefs(content));    if (content)      content->SetFocus(mContext);  }  nsCOMPtr<nsIPrivateDOMEvent> privateEvent(do_QueryInterface(aMouseEvent));  if (privateEvent) {    nsMouseEvent* mouseEvent = nsnull;    privateEvent->GetInternalNSEvent((nsEvent**)&mouseEvent);    if (mouseEvent) {      nsEventStatus rv = ProcessEvent(*mouseEvent);      if (nsEventStatus_eConsumeNoDefault == rv) {        return NS_ERROR_FAILURE; // means consume event      }    }    else NS_ASSERTION(PR_FALSE, "nsPluginInstanceOwner::MouseDown failed, mouseEvent null");     }  else NS_ASSERTION(PR_FALSE, "nsPluginInstanceOwner::MouseDown failed, privateEvent null");       return NS_OK;}