Index: content/browser/accessibility/accessibility_tree_formatter.cc |
diff --git a/content/browser/accessibility/accessibility_tree_formatter.cc b/content/browser/accessibility/accessibility_tree_formatter.cc |
index 1f56cd47f654d33d3dd4ca0393b4fe3fb686e631..2ca2a8544fd7a8d124873954354325edb792d35a 100644 |
--- a/content/browser/accessibility/accessibility_tree_formatter.cc |
+++ b/content/browser/accessibility/accessibility_tree_formatter.cc |
@@ -20,6 +20,7 @@ namespace { |
const char kIndentSymbol = '+'; |
const int kIndentSymbolCount = 2; |
const char* kSkipString = "@NO_DUMP"; |
+const char* kSkipChildren = "@NO_CHILDREN_DUMP"; |
const char* kChildrenDictAttr = "children"; |
} |
@@ -84,6 +85,9 @@ void AccessibilityTreeFormatter::RecursiveFormatAccessibilityTree( |
return; |
*contents += line + base::ASCIIToUTF16("\n"); |
+ if (line.find(base::ASCIIToUTF16(kSkipChildren)) != base::string16::npos) |
+ return; |
+ |
const base::ListValue* children; |
dict.GetList(kChildrenDictAttr, &children); |
const base::DictionaryValue* child_dict; |