Added an XXX to remind me to talk with Cujo about how we determine

whether the column widths have changed...
This commit is contained in:
troy
1998-07-15 04:52:32 +00:00
parent 4335469bf3
commit 0af9bfcffa
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -732,7 +732,7 @@ nsresult nsTableRowFrame::IncrementalReflow(nsIPresContext* aPresContext,
PRInt32 cellColIndex = ((nsTableCellFrame *)kidFrame)->GetColIndex();
PRInt32 cellColSpan = ((nsTableCellFrame *)kidFrame)->GetColSpan();
nscoord availWidth = 0;
for (PRInt32 numColSpan=0; numColSpan<cellColSpan; numColSpan++)
for (PRInt32 numColSpan = 0; numColSpan < cellColSpan; numColSpan++)
{
availWidth += aState.tableFrame->GetColumnWidth(cellColIndex+numColSpan);
if (0<numColSpan)
@@ -780,6 +780,9 @@ nsresult nsTableRowFrame::IncrementalReflow(nsIPresContext* aPresContext,
status = ReflowChild(kidFrame, aPresContext, desiredSize, kidReflowState);
// Place the child after taking into account it's margin and attributes
// XXX We need to ask the table (or the table layout strategy) if the column
// widths have changed. If so we just bail and return a status indicating
// what happened and let the table reflow all the table cells...
nscoord specifiedHeight = 0;
nscoord cellHeight = desiredSize.height;
nsIStyleContextPtr kidSC;