Bug 827356 - make DOMWINDOW debugging messages use consistent addresses; r=bz

This commit is contained in:
Nathan Froyd 2013-01-07 10:56:24 -05:00
parent 64710f99c4
commit 632a264083

View File

@ -741,7 +741,8 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow)
if (!PR_GetEnv("MOZ_QUIET")) {
printf("++DOMWINDOW == %d (%p) [serial = %d] [outer = %p]\n", gRefCnt,
static_cast<void*>(static_cast<nsIScriptGlobalObject*>(this)),
gSerialCounter, static_cast<void*>(aOuterWindow));
gSerialCounter,
static_cast<void*>(static_cast<nsIScriptGlobalObject*>(aOuterWindow)));
}
#endif
@ -816,9 +817,10 @@ nsGlobalWindow::~nsGlobalWindow()
}
}
nsGlobalWindow* outer = static_cast<nsGlobalWindow*>(mOuterWindow.get());
printf("--DOMWINDOW == %d (%p) [serial = %d] [outer = %p] [url = %s]\n",
gRefCnt, static_cast<void*>(static_cast<nsIScriptGlobalObject*>(this)),
mSerial, static_cast<void*>(mOuterWindow.get()), url.get());
mSerial, static_cast<void*>(static_cast<nsIScriptGlobalObject*>(outer)), url.get());
}
#endif