mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
compute the BC information only if there are cells bug 350906 r/sr=bzbarsky
This commit is contained in:
parent
ccfb295963
commit
b6cec66d11
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user