From eb3ae6604b3edc4cd62d6bddeddc080abe79085c Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 9 Jun 1999 09:24:10 +0000 Subject: [PATCH] Passing the popup alignment info along. git-svn-id: svn://10.0.0.236/trunk@34397 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 5 +++-- mozilla/xpfe/appshell/src/nsWebShellWindow.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 37c0a4f474a..29f13028399 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -859,7 +859,8 @@ void nsWebShellWindow::DoContextMenu( nsIDOMNode * aMenuNode, nsIWidget * aParentWindow, PRInt32 aX, - PRInt32 aY) + PRInt32 aY, + const nsString& aPopupAlignment) { if (aMenuNode) { nsIContextMenu * pnsContextMenu; @@ -1078,7 +1079,7 @@ nsWebShellWindow::CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupCont if (tagName == "menu") { // XXX Need to distinguish between popup menus and context menus? - DoContextMenu(nsnull, rootElement, mWindow, aXPos, aYPos); + DoContextMenu(nsnull, rootElement, mWindow, aXPos, aYPos, aPopupAlignment); // Fire the DESTRUCT DOM event to give JS/C++ a chance to destroy the popup contents nsEventStatus status = nsEventStatus_eIgnore; diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.h b/mozilla/xpfe/appshell/src/nsWebShellWindow.h index 32e80a841ce..e76ef20f107 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.h +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.h @@ -128,7 +128,8 @@ public: nsIDOMNode * aMenuNode, nsIWidget * aParentWindow, PRInt32 aX, - PRInt32 aY); + PRInt32 aY, + const nsString& aPopupAlignment); // nsIDocumentLoaderObserver NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader,