mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fix for 66823. we weren't correctly setting the port before calling LocalToGlobal, which would cause ::MoveWindow() to be skipped in some situations (2nd browser window). r=danm/sr=ben.
This commit is contained in:
parent
9263159608
commit
ac923ebfb8
@ -32,6 +32,7 @@
|
||||
#include "nsIDragSessionMac.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsCarbonHelpers.h"
|
||||
#include "nsGFXUtils.h"
|
||||
|
||||
#include <Quickdraw.h>
|
||||
|
||||
@ -667,7 +668,8 @@ NS_IMETHODIMP nsMacWindow::ConstrainPosition(PRInt32 *aX, PRInt32 *aY)
|
||||
//-------------------------------------------------------------------------
|
||||
NS_IMETHODIMP nsMacWindow::Move(PRInt32 aX, PRInt32 aY)
|
||||
{
|
||||
|
||||
StPortSetter setOurPortForLocalToGlobal ( mWindowPtr );
|
||||
|
||||
if (eWindowType_popup == mWindowType) {
|
||||
PRInt32 xOffset=0,yOffset=0;
|
||||
nsRect localRect,globalRect;
|
||||
|
Loading…
Reference in New Issue
Block a user