Bug 325093. Fix clip rect interpretation so print/print preview page clipping works. r+sr=dbaron
This commit is contained in:
Родитель
b3e8edec7e
Коммит
5037e0a35a
|
@ -181,5 +181,5 @@ nsPageContentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
nsresult rv = nsContainerFrame::BuildDisplayList(aBuilder, aDirtyRect, set);
|
||||
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
|
||||
printf("*** ClipRect: %5d,%5d,%5d,%5d\n", mClipRect.x, mClipRect.y, mClipRect.width, mClipRect.height);
|
||||
#endif
|
||||
return Clip(aBuilder, set, aLists, mClipRect);
|
||||
return Clip(aBuilder, set, aLists,
|
||||
mClipRect + aBuilder->ToReferenceFrame(this));
|
||||
}
|
||||
|
||||
set.MoveTo(aLists);
|
||||
|
|
Загрузка…
Ссылка в новой задаче