Bug 1193786 - crash in mozilla::dom::Element::FindAttrValueIn, r=marcoz
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 13 Aug 2015 08:43:26 -0400
changeset 257577 08caf7dd050274fcd091f5d9bef5ab2e2c031c68
parent 257576 b3092b2ab776ff7022065c2bb0df98015249c4ad
child 257578 e18c579d29f128f90560e64c6ea1062a51e59fe3
push id29223
push userkwierso@gmail.com
push dateThu, 13 Aug 2015 22:18:08 +0000
treeherdermozilla-central@4b35236fc76e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarcoz
bugs1193786
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1193786 - crash in mozilla::dom::Element::FindAttrValueIn, r=marcoz
accessible/base/Filters.cpp
--- a/accessible/base/Filters.cpp
+++ b/accessible/base/Filters.cpp
@@ -42,20 +42,17 @@ filters::GetRow(Accessible* aAccessible)
     return eSkip;
 
   return eSkipSubtree;
 }
 
 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
 filters::GetEmbeddedObject(Accessible* aAccessible)
 {
   return nsAccUtils::IsEmbeddedObject(aAccessible) ?
     eMatch | eSkipSubtree : eSkipSubtree;
 }