Added a Mac case for creating the popup widget.. The #ifdef will come out when all platforms support the PopUp_CID

This commit is contained in:
dcone@netscape.com
1999-09-14 21:29:58 +00:00
parent 1879500120
commit 237bf49202
2 changed files with 18 additions and 8 deletions
+9 -4
View File
@@ -1704,10 +1704,15 @@ nsListControlFrame::CreateScrollingViewWidget(nsIView* aView, const nsStylePosit
aView->SetZIndex(kMaxZ);
widgetData.mWindowType = eWindowType_popup;
widgetData.mBorderStyle = eBorderStyle_default;
static NS_DEFINE_IID(kCChildCID, NS_CHILD_CID);
aView->CreateWidget(kCChildCID,
&widgetData,
nsnull);
#ifdef XP_MAC
static NS_DEFINE_IID(kCPopUpCID, NS_POPUP_CID);
aView->CreateWidget(kCPopUpCID, &widgetData, nsnull);
#else
static NS_DEFINE_IID(kCChildCID, NS_CHILD_CID);
aView->CreateWidget(kCChildCID, &widgetData, nsnull);
#endif
return NS_OK;
} else {
return nsScrollFrame::CreateScrollingViewWidget(aView, aPosition);