Added some debug noise (disabled by default) for document creation

This commit is contained in:
kipp%netscape.com 1998-11-23 17:18:08 +00:00
Родитель 8c50aa8388
Коммит c10779fd3a
2 изменённых файлов: 28 добавлений и 0 удалений

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

@ -51,6 +51,11 @@
/* Forward declarations.... */
class nsDocLoaderImpl;
#ifdef DEBUG
#undef NOISY_CREATE_DOC
#else
#undef NOISY_CREATE_DOC
#endif
#if defined(DEBUG) || defined(FORCE_PR_LOG)
PRLogModuleInfo* gDocLoaderLog = nsnull;
@ -300,6 +305,15 @@ nsDocFactoryImpl::CreateDefaultDocument(nsIURL* aURL,
nsIDocument* doc = nsnull;
nsIDocumentViewer* docv = nsnull;
#ifdef NOISY_CREATE_DOC
if (nsnull != aURL) {
nsAutoString tmp;
aURL->ToString(tmp);
fputs(tmp, stdout);
printf(": creating document\n");
}
#endif
// Load the UA style sheet if we haven't already done that
if (nsnull == gUAStyleSheet) {
InitUAStyleSheet();

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

@ -51,6 +51,11 @@
/* Forward declarations.... */
class nsDocLoaderImpl;
#ifdef DEBUG
#undef NOISY_CREATE_DOC
#else
#undef NOISY_CREATE_DOC
#endif
#if defined(DEBUG) || defined(FORCE_PR_LOG)
PRLogModuleInfo* gDocLoaderLog = nsnull;
@ -300,6 +305,15 @@ nsDocFactoryImpl::CreateDefaultDocument(nsIURL* aURL,
nsIDocument* doc = nsnull;
nsIDocumentViewer* docv = nsnull;
#ifdef NOISY_CREATE_DOC
if (nsnull != aURL) {
nsAutoString tmp;
aURL->ToString(tmp);
fputs(tmp, stdout);
printf(": creating document\n");
}
#endif
// Load the UA style sheet if we haven't already done that
if (nsnull == gUAStyleSheet) {
InitUAStyleSheet();