Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5597)

Unified Diff: content/browser/accessibility/one_shot_accessibility_tree_search.cc

Issue 2825803002: Expose internal treegrid role, do some cleanup for table/grid/treegrid handling (Closed)
Patch Set: Fix mac tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/one_shot_accessibility_tree_search.cc
diff --git a/content/browser/accessibility/one_shot_accessibility_tree_search.cc b/content/browser/accessibility/one_shot_accessibility_tree_search.cc
index 4a0d4bc9c6802510ca6e23d5307ab8eff95f0fcd..7cfbd16b5d8110b4931d2ba12341066eeaa34abe 100644
--- a/content/browser/accessibility/one_shot_accessibility_tree_search.cc
+++ b/content/browser/accessibility/one_shot_accessibility_tree_search.cc
@@ -409,8 +409,7 @@ bool AccessibilityRadioGroupPredicate(
bool AccessibilityTablePredicate(
BrowserAccessibility* start, BrowserAccessibility* node) {
- return (node->GetRole() == ui::AX_ROLE_TABLE ||
- node->GetRole() == ui::AX_ROLE_GRID);
+ return node->IsTableLikeRole();
}
bool AccessibilityTextfieldPredicate(
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698