зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1148156 - Print the window ID in the ++--DOMWINDOW logging. r=smaug
--HG-- extra : rebase_source : ff57498a5cd612bf35eb1451a7987f1e2dd29a1c
This commit is contained in:
Родитель
2030c9f064
Коммит
dd414a5a7d
|
@ -1200,12 +1200,13 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow)
|
|||
|
||||
#ifdef DEBUG
|
||||
if (!PR_GetEnv("MOZ_QUIET")) {
|
||||
printf_stderr("++DOMWINDOW == %d (%p) [pid = %d] [serial = %d] [outer = %p]\n",
|
||||
printf_stderr("++DOMWINDOW == %d (%p) [pid = %d] [serial = %d] [outer = %p] [winid = %llu]\n",
|
||||
gRefCnt,
|
||||
static_cast<void*>(ToCanonicalSupports(this)),
|
||||
getpid(),
|
||||
gSerialCounter,
|
||||
static_cast<void*>(ToCanonicalSupports(aOuterWindow)));
|
||||
static_cast<void*>(ToCanonicalSupports(aOuterWindow)),
|
||||
WindowID());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1293,13 +1294,14 @@ nsGlobalWindow::~nsGlobalWindow()
|
|||
}
|
||||
|
||||
nsGlobalWindow* outer = static_cast<nsGlobalWindow*>(mOuterWindow.get());
|
||||
printf_stderr("--DOMWINDOW == %d (%p) [pid = %d] [serial = %d] [outer = %p] [url = %s]\n",
|
||||
printf_stderr("--DOMWINDOW == %d (%p) [pid = %d] [serial = %d] [outer = %p] [url = %s] [winid = %llu]\n",
|
||||
gRefCnt,
|
||||
static_cast<void*>(ToCanonicalSupports(this)),
|
||||
getpid(),
|
||||
mSerial,
|
||||
static_cast<void*>(ToCanonicalSupports(outer)),
|
||||
url.get());
|
||||
url.get(),
|
||||
WindowID());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче