b=75893. r=mcclusk sr=attinasi a=chofmann

This commit is contained in:
dcone%netscape.com 2001-04-25 14:26:28 +00:00
Родитель a354734ce0
Коммит c765109976
4 изменённых файлов: 36 добавлений и 12 удалений

Просмотреть файл

@ -159,8 +159,14 @@ NS_IMETHODIMP nsDeviceContextMac :: SupportsNativeWidgets(PRBool &aSupportsWidge
// Raptor currently doesn't work this way and needs to be fixed.
// (please remove this comment when this situation is rectified)
if( nsnull != mSpec){
aSupportsWidgets = PR_FALSE;
} else {
aSupportsWidgets = PR_TRUE;
}
//if (nsnull == mSurface)
aSupportsWidgets = PR_TRUE;
//else
//aSupportsWidgets = PR_FALSE;

Просмотреть файл

@ -103,7 +103,7 @@ nsPrintOptions::nsPrintOptions() :
mPrintInColor(PR_TRUE),
mPaperSize(kLetterPaperSize),
mPrintToFile(PR_FALSE),
mPrintFrameType(kSelectedFrame),
mPrintFrameType(kFramesAsIs),
mHowToEnableFrameUI(kFrameEnableNone),
mPageNumJust(kJustLeft),
mIsCancelled(PR_FALSE),

Просмотреть файл

@ -773,15 +773,19 @@ nsSimplePageSequenceFrame::PrintNextPage(nsIPresContext* aPresContext,
NS_IMETHODIMP
nsSimplePageSequenceFrame::DoPageEnd(nsIPresContext* aPresContext)
{
nsresult rv = NS_OK;
if (mPrintThisPage) {
nsCOMPtr<nsIDeviceContext> dc;
aPresContext->GetDeviceContext(getter_AddRefs(dc));
NS_ASSERTION(dc, "nsIDeviceContext can't be NULL!");
PRINT_DEBUG_MSG1("***************** End Page (DoPageEnd) *****************\n");
nsresult rv = dc->EndPage();
if (NS_FAILED(rv)) {
return rv;
if(mSkipPageEnd){
PRINT_DEBUG_MSG1("***************** End Page (DoPageEnd) *****************\n");
nsresult rv = dc->EndPage();
if (NS_FAILED(rv)) {
return rv;
}
}
}
@ -791,7 +795,12 @@ nsSimplePageSequenceFrame::DoPageEnd(nsIPresContext* aPresContext)
}
mPageNum++;
return mCurrentPageFrame->GetNextSibling(&mCurrentPageFrame);
if( nsnull != mCurrentPageFrame){
rv = mCurrentPageFrame->GetNextSibling(&mCurrentPageFrame);
}
return rv;
}
NS_IMETHODIMP

Просмотреть файл

@ -773,15 +773,19 @@ nsSimplePageSequenceFrame::PrintNextPage(nsIPresContext* aPresContext,
NS_IMETHODIMP
nsSimplePageSequenceFrame::DoPageEnd(nsIPresContext* aPresContext)
{
nsresult rv = NS_OK;
if (mPrintThisPage) {
nsCOMPtr<nsIDeviceContext> dc;
aPresContext->GetDeviceContext(getter_AddRefs(dc));
NS_ASSERTION(dc, "nsIDeviceContext can't be NULL!");
PRINT_DEBUG_MSG1("***************** End Page (DoPageEnd) *****************\n");
nsresult rv = dc->EndPage();
if (NS_FAILED(rv)) {
return rv;
if(mSkipPageEnd){
PRINT_DEBUG_MSG1("***************** End Page (DoPageEnd) *****************\n");
nsresult rv = dc->EndPage();
if (NS_FAILED(rv)) {
return rv;
}
}
}
@ -791,7 +795,12 @@ nsSimplePageSequenceFrame::DoPageEnd(nsIPresContext* aPresContext)
}
mPageNum++;
return mCurrentPageFrame->GetNextSibling(&mCurrentPageFrame);
if( nsnull != mCurrentPageFrame){
rv = mCurrentPageFrame->GetNextSibling(&mCurrentPageFrame);
}
return rv;
}
NS_IMETHODIMP