mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 360227: prevent framesets from taking up an extra blank page when print/print previewing. r+sr=roc.
This commit is contained in:
parent
8fa9a1d89e
commit
08d6a5b39d
@ -710,10 +710,16 @@ nsHTMLFramesetFrame::GetDesiredSize(nsPresContext* aPresContext,
|
||||
{
|
||||
nsHTMLFramesetFrame* framesetParent = GetFramesetParent(this);
|
||||
if (nsnull == framesetParent) {
|
||||
nsRect area = aPresContext->GetVisibleArea();
|
||||
if (aPresContext->IsPaginated()) {
|
||||
// XXX This needs to be changed when framesets paginate properly
|
||||
aDesiredSize.width = aReflowState.availableWidth;
|
||||
aDesiredSize.height = aReflowState.availableHeight;
|
||||
} else {
|
||||
nsRect area = aPresContext->GetVisibleArea();
|
||||
|
||||
aDesiredSize.width = area.width;
|
||||
aDesiredSize.height= area.height;
|
||||
aDesiredSize.width = area.width;
|
||||
aDesiredSize.height= area.height;
|
||||
}
|
||||
} else {
|
||||
nsSize size;
|
||||
framesetParent->GetSizeOfChild(this, size);
|
||||
|
Loading…
Reference in New Issue
Block a user