summaryrefslogtreecommitdiffstats
path: root/content/browser/accessibility/accessibility_tree_formatter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/accessibility/accessibility_tree_formatter.cc')
-rw-r--r--content/browser/accessibility/accessibility_tree_formatter.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/accessibility/accessibility_tree_formatter.cc b/content/browser/accessibility/accessibility_tree_formatter.cc
index 1f56cd4..2ca2a85 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;