overflow area implementation for table frames, bug 173277 r=jkeiser sr=dbaron

This commit is contained in:
bmlk@gmx.de
2003-09-13 16:26:30 +00:00
parent 7383d2b0a1
commit 474757012f
20 changed files with 532 additions and 510 deletions

View File

@@ -219,7 +219,7 @@ BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext* aPresCont
nscoord horOffset;
// get the reduction in available horizontal space due to borders and padding
if (mTableFrame->IsBorderCollapse()) {
nsMargin offset = mTableFrame->GetChildAreaOffset(*aPresContext, &aReflowState);
nsMargin offset = mTableFrame->GetChildAreaOffset(aPresContext, &aReflowState);
horOffset = offset.left + offset.right;
}
else {
@@ -1235,7 +1235,7 @@ BasicTableLayoutStrategy::CalcPctAdjTableWidth(nsIPresContext& aPresCon
rawPctValues[colX] = 0.0f;
}
nsMargin borderPadding = mTableFrame->GetContentAreaOffset(aPresContext, &aReflowState);
nsMargin borderPadding = mTableFrame->GetContentAreaOffset(&aPresContext, &aReflowState);
nscoord availWidth = aAvailWidthIn;
if (NS_UNCONSTRAINEDSIZE != availWidth) {
// adjust the avail width to exclude table border, padding and cell spacing
@@ -1369,7 +1369,7 @@ BasicTableLayoutStrategy::AssignPctColumnWidths(nsIPresContext& aPresCo
: aAvailWidth;
// adjust the basis to exclude table border, padding and cell spacing
nsMargin borderPadding = mTableFrame->GetContentAreaOffset(aPresContext, &aReflowState);
nsMargin borderPadding = mTableFrame->GetContentAreaOffset(&aPresContext, &aReflowState);
basis -= borderPadding.left + borderPadding.right + mCellSpacingTotal;
nscoord colPctTotal = 0;