From 1fb5af2b0c6f122e2ab7393fa3c11b104518d71d Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Thu, 13 Aug 2015 08:43:26 -0400 Subject: [PATCH] Bug 1193786 - crash in mozilla::dom::Element::FindAttrValueIn, r=marcoz --- accessible/base/Filters.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/accessible/base/Filters.cpp b/accessible/base/Filters.cpp index 3bf36f143cf6..619a68774e71 100644 --- a/accessible/base/Filters.cpp +++ b/accessible/base/Filters.cpp @@ -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