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

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: Expose table properties for <table role=grid> 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..d8c5e020977dad2ff4f2579f802a306c67b6c4fe 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->IsTableOrGridOrTreeGridRole();
}
bool AccessibilityTextfieldPredicate(

Powered by Google App Engine
This is Rietveld 408576698