зеркало из https://github.com/mozilla/pjs.git
Fix for bug #21703. r=karnaze, a=chofmann
This commit is contained in:
Родитель
adb74c199d
Коммит
b1d37ddf32
|
@ -597,10 +597,12 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext,
|
|||
PRBool hasRowSpanningCell = PR_FALSE;
|
||||
PRInt32 numRows;
|
||||
GetRowCount(numRows, PR_FALSE);
|
||||
if (numRows <= 0) return;
|
||||
nscoord *rowHeights = new nscoord[numRows];
|
||||
nscoord* rowHeights = nsnull;
|
||||
if (numRows > 0) {
|
||||
rowHeights = new nscoord[numRows];
|
||||
if (!rowHeights) return;
|
||||
nsCRT::memset (rowHeights, 0, numRows*sizeof(nscoord));
|
||||
}
|
||||
|
||||
/* Step 1: get the height of the tallest cell in the row and save it for
|
||||
* pass 2. This height is for table cells that originate in this
|
||||
|
|
|
@ -597,10 +597,12 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext,
|
|||
PRBool hasRowSpanningCell = PR_FALSE;
|
||||
PRInt32 numRows;
|
||||
GetRowCount(numRows, PR_FALSE);
|
||||
if (numRows <= 0) return;
|
||||
nscoord *rowHeights = new nscoord[numRows];
|
||||
nscoord* rowHeights = nsnull;
|
||||
if (numRows > 0) {
|
||||
rowHeights = new nscoord[numRows];
|
||||
if (!rowHeights) return;
|
||||
nsCRT::memset (rowHeights, 0, numRows*sizeof(nscoord));
|
||||
}
|
||||
|
||||
/* Step 1: get the height of the tallest cell in the row and save it for
|
||||
* pass 2. This height is for table cells that originate in this
|
||||
|
|
Загрузка…
Ссылка в новой задаче