Bug 1148156 - Print the window ID in the ++--DOMWINDOW logging. r=smaug

--HG--
extra : rebase_source : ff57498a5cd612bf35eb1451a7987f1e2dd29a1c
This commit is contained in:
Andrew McCreight 2015-03-30 13:51:00 +02:00
Родитель 2030c9f064
Коммит dd414a5a7d
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -1200,12 +1200,13 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow)
#ifdef DEBUG #ifdef DEBUG
if (!PR_GetEnv("MOZ_QUIET")) { 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, gRefCnt,
static_cast<void*>(ToCanonicalSupports(this)), static_cast<void*>(ToCanonicalSupports(this)),
getpid(), getpid(),
gSerialCounter, gSerialCounter,
static_cast<void*>(ToCanonicalSupports(aOuterWindow))); static_cast<void*>(ToCanonicalSupports(aOuterWindow)),
WindowID());
} }
#endif #endif
@ -1293,13 +1294,14 @@ nsGlobalWindow::~nsGlobalWindow()
} }
nsGlobalWindow* outer = static_cast<nsGlobalWindow*>(mOuterWindow.get()); 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, gRefCnt,
static_cast<void*>(ToCanonicalSupports(this)), static_cast<void*>(ToCanonicalSupports(this)),
getpid(), getpid(),
mSerial, mSerial,
static_cast<void*>(ToCanonicalSupports(outer)), static_cast<void*>(ToCanonicalSupports(outer)),
url.get()); url.get(),
WindowID());
} }
#endif #endif