Changed the API to BeginDocument.. changed the call in here. sr=attinasi r=rods

This commit is contained in:
dcone%netscape.com 2001-02-15 03:52:13 +00:00
parent b32af00f17
commit dafca2054b
3 changed files with 6 additions and 6 deletions

View File

@ -1418,7 +1418,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent,
#if SPOOL_TO_ONE_DOC // this will fix all frames being painted to the same spooling document
// (this part needs to be added)
if (aIsSubDoc == nsnull) {
NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE );
NS_ENSURE_SUCCESS( aDContext->BeginDocument(nsnull), NS_ERROR_FAILURE );
}
#endif
@ -1523,7 +1523,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent,
if (!aIsSubDoc || (aIsSubDoc && canPrintFrame)) {
#ifndef SPOOL_TO_ONE_DOC // this will fix all frames being painted to the same spooling document
// (this part needs to be removed)
NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE );
NS_ENSURE_SUCCESS( aDContext->BeginDocument(nsnull), NS_ERROR_FAILURE );
#endif
if (docTitleStr != nsnull) {

View File

@ -1418,7 +1418,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent,
#if SPOOL_TO_ONE_DOC // this will fix all frames being painted to the same spooling document
// (this part needs to be added)
if (aIsSubDoc == nsnull) {
NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE );
NS_ENSURE_SUCCESS( aDContext->BeginDocument(nsnull), NS_ERROR_FAILURE );
}
#endif
@ -1523,7 +1523,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent,
if (!aIsSubDoc || (aIsSubDoc && canPrintFrame)) {
#ifndef SPOOL_TO_ONE_DOC // this will fix all frames being painted to the same spooling document
// (this part needs to be removed)
NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE );
NS_ENSURE_SUCCESS( aDContext->BeginDocument(nsnull), NS_ERROR_FAILURE );
#endif
if (docTitleStr != nsnull) {

View File

@ -1418,7 +1418,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent,
#if SPOOL_TO_ONE_DOC // this will fix all frames being painted to the same spooling document
// (this part needs to be added)
if (aIsSubDoc == nsnull) {
NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE );
NS_ENSURE_SUCCESS( aDContext->BeginDocument(nsnull), NS_ERROR_FAILURE );
}
#endif
@ -1523,7 +1523,7 @@ DocumentViewerImpl::PrintContent(nsIWebShell * aParent,
if (!aIsSubDoc || (aIsSubDoc && canPrintFrame)) {
#ifndef SPOOL_TO_ONE_DOC // this will fix all frames being painted to the same spooling document
// (this part needs to be removed)
NS_ENSURE_SUCCESS( aDContext->BeginDocument(), NS_ERROR_FAILURE );
NS_ENSURE_SUCCESS( aDContext->BeginDocument(nsnull), NS_ERROR_FAILURE );
#endif
if (docTitleStr != nsnull) {