Bug 325093. Fix clip rect interpretation so print/print preview page clipping works. r+sr=dbaron

This commit is contained in:
roc+%cs.cmu.edu 2006-02-06 21:08:34 +00:00
Родитель b3e8edec7e
Коммит 5037e0a35a
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -181,5 +181,5 @@ nsPageContentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsresult rv = nsContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, set); nsresult rv = nsContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, set);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
return Clip(aBuilder, set, aLists, rect); return Clip(aBuilder, set, aLists, rect + aBuilder->ToReferenceFrame(this));
} }

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

@ -573,7 +573,8 @@ nsPageFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
#ifdef DEBUG_PRINTING #ifdef DEBUG_PRINTING
printf("*** ClipRect: %5d,%5d,%5d,%5d\n", mClipRect.x, mClipRect.y, mClipRect.width, mClipRect.height); printf("*** ClipRect: %5d,%5d,%5d,%5d\n", mClipRect.x, mClipRect.y, mClipRect.width, mClipRect.height);
#endif #endif
return Clip(aBuilder, set, aLists, mClipRect); return Clip(aBuilder, set, aLists,
mClipRect + aBuilder->ToReferenceFrame(this));
} }
set.MoveTo(aLists); set.MoveTo(aLists);