From ec87b2a0a48026ac8afd7339358a135c8f1dea97 Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Tue, 9 Jan 2001 20:41:05 +0000 Subject: [PATCH] Took outsome debug code which snuck in. git-svn-id: svn://10.0.0.236/trunk@84660 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocumentViewer.cpp | 3 +-- mozilla/layout/base/nsDocumentViewer.cpp | 3 +-- mozilla/layout/base/src/nsDocumentViewer.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index 263d972366a..d900d3b3abc 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -935,7 +935,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent, // print any child documents // like frameset frames or iframes parentAsNode->GetChildCount(&count); - if(count< 0) { // DC EXPERIMENT + if(count> 0) { for(i=0;i child; parentAsNode->GetChildAt(i, getter_AddRefs(child)); @@ -951,7 +951,6 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent, // now complete printing the rest of the document // if it doesn't contain any framesets - doesContainFrameSet = PR_FALSE; // DC EXPERIMENT if (!doesContainFrameSet) { NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE ); aDContext->GetDeviceSurfaceDimensions(width, height); diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 263d972366a..d900d3b3abc 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -935,7 +935,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent, // print any child documents // like frameset frames or iframes parentAsNode->GetChildCount(&count); - if(count< 0) { // DC EXPERIMENT + if(count> 0) { for(i=0;i child; parentAsNode->GetChildAt(i, getter_AddRefs(child)); @@ -951,7 +951,6 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent, // now complete printing the rest of the document // if it doesn't contain any framesets - doesContainFrameSet = PR_FALSE; // DC EXPERIMENT if (!doesContainFrameSet) { NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE ); aDContext->GetDeviceSurfaceDimensions(width, height); diff --git a/mozilla/layout/base/src/nsDocumentViewer.cpp b/mozilla/layout/base/src/nsDocumentViewer.cpp index 263d972366a..d900d3b3abc 100644 --- a/mozilla/layout/base/src/nsDocumentViewer.cpp +++ b/mozilla/layout/base/src/nsDocumentViewer.cpp @@ -935,7 +935,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent, // print any child documents // like frameset frames or iframes parentAsNode->GetChildCount(&count); - if(count< 0) { // DC EXPERIMENT + if(count> 0) { for(i=0;i child; parentAsNode->GetChildAt(i, getter_AddRefs(child)); @@ -951,7 +951,6 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent, // now complete printing the rest of the document // if it doesn't contain any framesets - doesContainFrameSet = PR_FALSE; // DC EXPERIMENT if (!doesContainFrameSet) { NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE ); aDContext->GetDeviceSurfaceDimensions(width, height);