mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
Took outsome debug code which snuck in.
This commit is contained in:
parent
67c4987db9
commit
3b139c38ef
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user