compute the BC information only if there are cells bug 350906 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2006-09-02 08:48:39 +00:00
parent ccfb295963
commit b6cec66d11

View File

@ -5759,7 +5759,9 @@ nsTableFrame::CalcBCBorders()
nsTableCellMap* tableCellMap = GetCellMap(); if (!tableCellMap) ABORT0();
PRInt32 numRows = GetRowCount();
PRInt32 numCols = GetColCount();
if (!numRows || !numCols)
return; // nothing to do
// Get the property holding the table damage area and border widths
BCPropertyData* propData =
(BCPropertyData*)nsTableFrame::GetProperty(this, nsLayoutAtoms::tableBCProperty, PR_FALSE);