makes sure the views for the pages that are not being printed are completely hidden

Bug 83138 r=kmclusk sr=attinasi a=dbaron
This commit is contained in:
rods%netscape.com 2001-05-30 21:19:46 +00:00
Родитель 3740f9b3fe
Коммит bf413d89a7
2 изменённых файлов: 14 добавлений и 6 удалений

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

@ -568,9 +568,13 @@ nsSimplePageSequenceFrame::StartPrint(nsIPresContext* aPresContext,
page->GetView(aPresContext, &view);
NS_ASSERTION(nsnull != view, "no page view");
if (pageNum < mFromPageNum || pageNum > mToPageNum) {
// XXX Doesn't seem like we need to do this
// because we ask only the pages we want to print
//view->SetVisibility(nsViewVisibility_kHide);
// Hide the pages that won't be printed to the Viewmanager
// doesn't put them in the display list. Also, makde
// sure the child views don't get asked to print
// but my guess is that there won't be any
view->SetVisibility(nsViewVisibility_kHide);
view->SetChildClip(0,0,0,0);
view->SetViewFlags(NS_VIEW_PUBLIC_FLAG_CLIPCHILDREN);
} else {
nsRect rect;
page->GetRect(rect);

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

@ -568,9 +568,13 @@ nsSimplePageSequenceFrame::StartPrint(nsIPresContext* aPresContext,
page->GetView(aPresContext, &view);
NS_ASSERTION(nsnull != view, "no page view");
if (pageNum < mFromPageNum || pageNum > mToPageNum) {
// XXX Doesn't seem like we need to do this
// because we ask only the pages we want to print
//view->SetVisibility(nsViewVisibility_kHide);
// Hide the pages that won't be printed to the Viewmanager
// doesn't put them in the display list. Also, makde
// sure the child views don't get asked to print
// but my guess is that there won't be any
view->SetVisibility(nsViewVisibility_kHide);
view->SetChildClip(0,0,0,0);
view->SetViewFlags(NS_VIEW_PUBLIC_FLAG_CLIPCHILDREN);
} else {
nsRect rect;
page->GetRect(rect);