From 237bf49202e05d034f4aeaed20445d6d95a3b484 Mon Sep 17 00:00:00 2001 From: "dcone@netscape.com" Date: Tue, 14 Sep 1999 21:29:58 +0000 Subject: [PATCH] Added a Mac case for creating the popup widget.. The #ifdef will come out when all platforms support the PopUp_CID --- layout/forms/nsListControlFrame.cpp | 13 +++++++++---- layout/html/forms/src/nsListControlFrame.cpp | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp index 4a2d73fb808e..97caa4a8d302 100644 --- a/layout/forms/nsListControlFrame.cpp +++ b/layout/forms/nsListControlFrame.cpp @@ -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); diff --git a/layout/html/forms/src/nsListControlFrame.cpp b/layout/html/forms/src/nsListControlFrame.cpp index 4a2d73fb808e..97caa4a8d302 100644 --- a/layout/html/forms/src/nsListControlFrame.cpp +++ b/layout/html/forms/src/nsListControlFrame.cpp @@ -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);