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

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

Issue 2427813002: Android accessibility should not treat whitespace-only nodes as interesting. (Closed)
Patch Set: Created 4 years, 2 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 4923e25ef9bbe079696fbbbe5d46d2f66b2e968d..bd54a8da87a409c2c3edfc987daee99221b66024 100644
--- a/content/browser/accessibility/one_shot_accessibility_tree_search.cc
+++ b/content/browser/accessibility/one_shot_accessibility_tree_search.cc
@@ -153,7 +153,7 @@ void OneShotAccessibilityTreeSearch::SearchByIteratingOverChildren() {
void OneShotAccessibilityTreeSearch::SearchByWalkingTree() {
BrowserAccessibility* node = nullptr;
node = start_node_;
- if (node != scope_node_) {
+ if (node != scope_node_ || result_limit_ == 1) {
if (direction_ == FORWARDS)
node = tree_->NextInTreeOrder(start_node_);
else

Powered by Google App Engine
This is Rietveld 408576698