Split row groups works only for paginated media bug 268231 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2004-11-11 17:27:38 +00:00
parent 9f011feb30
commit ce51183fce
2 changed files with 20 additions and 6 deletions

View File

@ -983,12 +983,19 @@ nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
aDesiredSize.height = 0;
GET_PIXELS_TO_TWIPS(aPresContext, p2t);
nscoord availWidth = nsTableFrame::RoundToPixel(aReflowState.availableWidth, p2t);
nscoord availHeight = nsTableFrame::RoundToPixel(aReflowState.availableHeight, p2t);
nscoord availWidth = (NS_UNCONSTRAINEDSIZE == aReflowState.availableWidth) ?
NS_UNCONSTRAINEDSIZE :
nsTableFrame::RoundToPixel(aReflowState.availableWidth, p2t);
nscoord availHeight = (NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) ?
NS_UNCONSTRAINEDSIZE :
nsTableFrame::RoundToPixel(aReflowState.availableHeight, p2t);
PRBool borderCollapse = ((nsTableFrame*)aTableFrame->GetFirstInFlow())->IsBorderCollapse();
nscoord cellSpacingY = aTableFrame->GetCellSpacingY();
NS_ASSERTION(aPresContext->IsPaginated(), "SplitRowGroup currently supports only paged media");
if (!aPresContext->IsPaginated())
return NS_ERROR_NOT_IMPLEMENTED;
// get the page height
nsRect actualRect;
nsRect adjRect;

View File

@ -983,12 +983,19 @@ nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
aDesiredSize.height = 0;
GET_PIXELS_TO_TWIPS(aPresContext, p2t);
nscoord availWidth = nsTableFrame::RoundToPixel(aReflowState.availableWidth, p2t);
nscoord availHeight = nsTableFrame::RoundToPixel(aReflowState.availableHeight, p2t);
nscoord availWidth = (NS_UNCONSTRAINEDSIZE == aReflowState.availableWidth) ?
NS_UNCONSTRAINEDSIZE :
nsTableFrame::RoundToPixel(aReflowState.availableWidth, p2t);
nscoord availHeight = (NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) ?
NS_UNCONSTRAINEDSIZE :
nsTableFrame::RoundToPixel(aReflowState.availableHeight, p2t);
PRBool borderCollapse = ((nsTableFrame*)aTableFrame->GetFirstInFlow())->IsBorderCollapse();
nscoord cellSpacingY = aTableFrame->GetCellSpacingY();
NS_ASSERTION(aPresContext->IsPaginated(), "SplitRowGroup currently supports only paged media");
if (!aPresContext->IsPaginated())
return NS_ERROR_NOT_IMPLEMENTED;
// get the page height
nsRect actualRect;
nsRect adjRect;