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,