Bug 1708032: Remove unused MOZ_USE_NATIVE_POPUP_WINDOWS from nsCocoaWindow.mm. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D113591
This commit is contained in:
Stephen A Pohl 2021-04-27 21:41:55 +00:00
Родитель 2d0cd04e63
Коммит 0a505ad43c
1 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -260,16 +260,6 @@ static void FitRectToVisibleAreaForScreen(DesktopIntRect& aRect, NSScreen* aScre
}
}
// Some applications use native popup windows
// (native context menus, native tooltips)
static bool UseNativePopupWindows() {
#ifdef MOZ_USE_NATIVE_POPUP_WINDOWS
return true;
#else
return false;
#endif /* MOZ_USE_NATIVE_POPUP_WINDOWS */
}
DesktopToLayoutDeviceScale ParentBackingScaleFactor(nsIWidget* aParent, NSView* aParentView) {
if (aParent) {
return aParent->GetDesktopToDeviceScale();
@ -337,9 +327,6 @@ nsresult nsCocoaWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
mAncestorLink = aParent;
mAlwaysOnTop = aInitData->mAlwaysOnTop;
// Applications that use native popups don't want us to create popup windows.
if ((mWindowType == eWindowType_popup) && UseNativePopupWindows()) return NS_OK;
// If we have a parent widget, the new widget will be offset from the
// parent widget by aRect.{x,y}. Otherwise, we'll use aRect for the
// new widget coordinates.