Bug 1194859 - crash in mozilla::a11y::ARIAGridCellAccessible::GroupPosition(), part2, r=marcoz

This commit is contained in:
Alexander Surkov
2015-08-28 10:52:21 -04:00
parent f301cb9805
commit b306ef83eb
2 changed files with 4 additions and 4 deletions

View File

@@ -147,8 +147,8 @@ GroupPos
HTMLTableCellAccessible::GroupPosition()
{
int32_t count = 0, index = 0;
Accessible* table = Table()->AsAccessible();
if (table && nsCoreUtils::GetUIntAttr(table->GetContent(),
TableAccessible* table = Table();
if (table && nsCoreUtils::GetUIntAttr(table->AsAccessible()->GetContent(),
nsGkAtoms::aria_colcount, &count) &&
nsCoreUtils::GetUIntAttr(mContent, nsGkAtoms::aria_colindex, &index)) {
return GroupPos(0, index, count);