Reflow child when max-element-size is requested (this works around a purify detected crash)

git-svn-id: svn://10.0.0.236/trunk@5375 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-07-12 00:19:17 +00:00
parent 88e680a7ba
commit c6eae7d71d
2 changed files with 12 additions and 2 deletions

View File

@@ -390,7 +390,12 @@ nsresult nsTableRowFrame::ResizeReflow(nsIPresContext* aPresContext,
// just reflow the cell, and have the cell decide whether it could use the
// cached value rather than having the row make that determination?
nsReflowMetrics desiredSize(pKidMaxElementSize);
if (availWidth != ((nsTableCellFrame *)kidFrame)->GetPriorAvailWidth())
// XXX kipp added the check for a non-null pKidMaxElementSize; if
// we need the max-element-size we must reflow the child to get
// it, right?
if ((nsnull != pKidMaxElementSize) ||
(availWidth != ((nsTableCellFrame *)kidFrame)->GetPriorAvailWidth()))
{
// Always let the cell be as high as it wants. We ignore the height that's
// passed in and always place the entire row. Let the row group decide

View File

@@ -390,7 +390,12 @@ nsresult nsTableRowFrame::ResizeReflow(nsIPresContext* aPresContext,
// just reflow the cell, and have the cell decide whether it could use the
// cached value rather than having the row make that determination?
nsReflowMetrics desiredSize(pKidMaxElementSize);
if (availWidth != ((nsTableCellFrame *)kidFrame)->GetPriorAvailWidth())
// XXX kipp added the check for a non-null pKidMaxElementSize; if
// we need the max-element-size we must reflow the child to get
// it, right?
if ((nsnull != pKidMaxElementSize) ||
(availWidth != ((nsTableCellFrame *)kidFrame)->GetPriorAvailWidth()))
{
// Always let the cell be as high as it wants. We ignore the height that's
// passed in and always place the entire row. Let the row group decide