зеркало из https://github.com/mozilla/gecko-dev.git
Bug 325093. Fix clip rect interpretation so print/print preview page clipping works. r+sr=dbaron
This commit is contained in:
Родитель
4c3ace6b8b
Коммит
4930422ce0
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче