Bug 1193786 - crash in mozilla::dom::Element::FindAttrValueIn, r=marcoz

This commit is contained in:
Alexander Surkov 2015-08-13 08:43:26 -04:00
parent 9417f42819
commit f2b93bae43

View File

@ -47,10 +47,7 @@ filters::GetRow(Accessible* aAccessible)
uint32_t
filters::GetCell(Accessible* aAccessible)
{
a11y::role role = aAccessible->Role();
return role == roles::CELL || role == roles::GRID_CELL ||
role == roles::ROWHEADER || role == roles::COLUMNHEADER ?
eMatch : eSkipSubtree;
return aAccessible->IsTableCell() ? eMatch : eSkipSubtree;
}
uint32_t