Separated table content from table layout. This paves the way for XML/CSS-2 tables.

Lots and lots of optimizations.
This commit is contained in:
buster
1998-06-17 16:38:24 +00:00
parent 9d83d84d96
commit 3ed8a1b541
46 changed files with 2135 additions and 1228 deletions
@@ -463,7 +463,10 @@ PRBool BasicTableLayoutStrategy::SetColumnsToMinWidth(nsIPresContext* aPresConte
for (PRInt32 cellIndex = 0; cellIndex<numCells; cellIndex++)
{ // this col has proportional width, so determine its width requirements
nsCellLayoutData * data = (nsCellLayoutData *)(cells->ElementAt(cellIndex));
NS_ASSERTION(nsnull != data, "bad data");
if (nsnull==data)
{ // For cells that span rows there's only cell layout data for the first row
continue;
}
nsSize * cellMinSize = data->GetMaxElementSize();
NS_ASSERTION(nsnull != cellMinSize, "bad cellMinSize");
nsReflowMetrics * cellDesiredSize = data->GetDesiredSize();