Bug 757440 - crash in nsHTMLTableAccessible::ColCount with JAWS 11. r=tbsaunde

This commit is contained in:
David Bolter 2012-05-22 13:23:20 -04:00
parent 4053a1e846
commit 2897e96067

View File

@ -533,6 +533,8 @@ PRUint32
nsHTMLTableAccessible::ColCount()
{
nsITableLayout* tableLayout = GetTableLayout();
if (!tableLayout)
return 0;
PRInt32 rowCount = 0, colCount = 0;
tableLayout->GetTableSize(rowCount, colCount);
@ -543,6 +545,8 @@ PRUint32
nsHTMLTableAccessible::RowCount()
{
nsITableLayout* tableLayout = GetTableLayout();
if (!tableLayout)
return 0;
PRInt32 rowCount = 0, colCount = 0;
tableLayout->GetTableSize(rowCount, colCount);