зеркало из https://github.com/mozilla/pjs.git
Linking up global window to call webshell container's createPopup.
This commit is contained in:
Родитель
0bdd196b04
Коммит
0d6868983a
|
@ -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<nsIWebShellContainer> webShellContainer = do_QueryInterface(mWebShell);
|
||||
if (webShellContainer) {
|
||||
webShellContainer->CreatePopup(aElement, aPopupContent, aXPos, aYPos, aPopupType,
|
||||
aPopupAlignment);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче