зеркало из https://github.com/mozilla/gecko-dev.git
Added some debug noise (disabled by default) for document creation
This commit is contained in:
Родитель
8c50aa8388
Коммит
c10779fd3a
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче