зеркало из https://github.com/mozilla/pjs.git
Eliminated circular reference between table row and table cell
This commit is contained in:
Родитель
992ca0906e
Коммит
f563f33e25
|
@ -100,7 +100,10 @@ void nsTableCell::Init()
|
|||
|
||||
nsTableCell::~nsTableCell()
|
||||
{
|
||||
#if 0
|
||||
// XXX Circular reference between table row and table cell
|
||||
NS_IF_RELEASE(mRow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// for debugging only
|
||||
|
@ -147,9 +150,14 @@ nsTableRow * nsTableCell::GetRow ()
|
|||
|
||||
void nsTableCell::SetRow (nsTableRow * aRow)
|
||||
{
|
||||
#if 0
|
||||
// XXX Circular reference between table row and table cell
|
||||
NS_IF_RELEASE(mRow);
|
||||
mRow = aRow;
|
||||
NS_IF_ADDREF(aRow);
|
||||
#else
|
||||
mRow = aRow;
|
||||
#endif
|
||||
}
|
||||
|
||||
int nsTableCell::GetColIndex ()
|
||||
|
|
Загрузка…
Ссылка в новой задаче