bug 14818 - made standard mode like NavQuirks when handling colspans exceeding the number of columns.

This commit is contained in:
karnaze%netscape.com 1999-10-05 04:21:00 +00:00
Родитель d5b561ee28
Коммит 49cb28761f
2 изменённых файлов: 20 добавлений и 20 удалений

Просмотреть файл

@ -673,18 +673,18 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
if (border.right > 0)
smallestMinWidth += onePixel;
}
PRInt32 colspan = GetColSpan();
if (colspan > 1) {
smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel);
nscoord spacingX = tableFrame->GetCellSpacingX();
nscoord spacingExtra = spacingX * (colspan - 1);
smallestMinWidth += spacingExtra;
if (padding.left > 0) {
smallestMinWidth -= onePixel;
}
}
PRInt32 colspan = GetColSpan();
if (colspan > 1) {
smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel);
nscoord spacingX = tableFrame->GetCellSpacingX();
nscoord spacingExtra = spacingX * (colspan - 1);
smallestMinWidth += spacingExtra;
if (padding.left > 0) {
smallestMinWidth -= onePixel;
}
}
if ((0 == kidSize.width) && (NS_UNCONSTRAINEDSIZE != kidReflowState.availableWidth)) {
// empty content has to be forced to the assigned width for resize or incremental reflow
kidSize.width = kidReflowState.availableWidth;

Просмотреть файл

@ -673,18 +673,18 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
if (border.right > 0)
smallestMinWidth += onePixel;
}
PRInt32 colspan = GetColSpan();
if (colspan > 1) {
smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel);
nscoord spacingX = tableFrame->GetCellSpacingX();
nscoord spacingExtra = spacingX * (colspan - 1);
smallestMinWidth += spacingExtra;
if (padding.left > 0) {
smallestMinWidth -= onePixel;
}
}
PRInt32 colspan = GetColSpan();
if (colspan > 1) {
smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel);
nscoord spacingX = tableFrame->GetCellSpacingX();
nscoord spacingExtra = spacingX * (colspan - 1);
smallestMinWidth += spacingExtra;
if (padding.left > 0) {
smallestMinWidth -= onePixel;
}
}
if ((0 == kidSize.width) && (NS_UNCONSTRAINEDSIZE != kidReflowState.availableWidth)) {
// empty content has to be forced to the assigned width for resize or incremental reflow
kidSize.width = kidReflowState.availableWidth;