From 0d962fc2144260f83e53a0f66dc5fd46c7ec0091 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Sat, 15 May 1999 00:48:39 +0000 Subject: [PATCH] Linking up global window to call webshell container's createPopup. git-svn-id: svn://10.0.0.236/trunk@31710 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 77b0b6dae34..ba258973851 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -16,6 +16,7 @@ * Reserved. */ +#include "nsCOMPtr.h" #include "nsGlobalWindow.h" #include "nscore.h" #include "nsRect.h" @@ -1633,6 +1634,12 @@ GlobalWindowImpl::CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupCont PRInt32 aXPos, PRInt32 aYPos, const nsString& aPopupType, const nsString& aPopupAlignment) { + // Pass this off to the parent. + nsCOMPtr webShellContainer = do_QueryInterface(mWebShell); + if (webShellContainer) { + webShellContainer->CreatePopup(aElement, aPopupContent, aXPos, aYPos, aPopupType, + aPopupAlignment); + } return NS_OK; }