Took outsome debug code which snuck in.

git-svn-id: svn://10.0.0.236/trunk@84660 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com
2001-01-09 20:41:05 +00:00
parent 5a3ebfa706
commit ec87b2a0a4
3 changed files with 3 additions and 6 deletions

View File

@@ -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<count;i++) {
nsCOMPtr<nsIDocShellTreeItem> 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);

View File

@@ -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<count;i++) {
nsCOMPtr<nsIDocShellTreeItem> 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);

View File

@@ -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<count;i++) {
nsCOMPtr<nsIDocShellTreeItem> 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);