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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user