Fixing XP menus on the Mac so that they paint properly, dismiss properly, etc.
git-svn-id: svn://10.0.0.236/trunk@49111 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
91e76aa58e
commit
3fe3c7cab1
@ -123,8 +123,7 @@ nsMenuDismissalListener::Unregister()
|
||||
{
|
||||
if (mWidget)
|
||||
mWidget->CaptureRollupEvents(this, PR_FALSE);
|
||||
else
|
||||
printf("This is very very bad.\n");
|
||||
|
||||
NS_RELEASE(nsMenuFrame::mDismissalListener);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -145,22 +145,16 @@ nsMenuPopupFrame::Init(nsIPresContext& aPresContext,
|
||||
ourView->SetZIndex(kMaxZ);
|
||||
widgetData.mWindowType = eWindowType_popup;
|
||||
widgetData.mBorderStyle = eBorderStyle_default;
|
||||
|
||||
#ifdef XP_MAC
|
||||
printf("XP Popups: This is a nag to indicate that an inconsistent hack is being done on the Mac for popups.\n");
|
||||
static NS_DEFINE_IID(kCPopupCID, NS_POPUP_CID);
|
||||
ourView->CreateWidget(kCPopupCID, &widgetData, nsnull);
|
||||
#else
|
||||
static NS_DEFINE_IID(kCChildCID, NS_CHILD_CID);
|
||||
ourView->CreateWidget(kCChildCID,
|
||||
&widgetData,
|
||||
nsnull);
|
||||
ourView->CreateWidget(kCChildCID, &widgetData, nsnull);
|
||||
#endif
|
||||
|
||||
// Register a listener so that we know when the mouse enters
|
||||
// the menu (have to use moves, since enter is completely flaky).
|
||||
|
||||
// Create the menu bar listener.
|
||||
/*mMenuPopupEntryListener = new nsMenuPopupEntryListener(this);
|
||||
|
||||
nsCOMPtr<nsIDOMEventReceiver> target = do_QueryInterface(mContent);
|
||||
nsIDOMEventListener* domEventListener = (nsIDOMMouseMotionListener*)mMenuPopupEntryListener;
|
||||
target->AddEventListener("mousemove", domEventListener, PR_FALSE);
|
||||
*/
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user