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

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

Issue 1552683002: Enable DumpAccessibilityTree tests to use cross-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline last Android test Created 4 years, 11 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
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/accessibility_tree_formatter_blink.cc
diff --git a/content/browser/accessibility/accessibility_tree_formatter_blink.cc b/content/browser/accessibility/accessibility_tree_formatter_blink.cc
index 27b9c9fa1cdaf133c89d5c09159b1b5a3be763b6..200c3375f45d6f7cf07d273543d3e1629106d329 100644
--- a/content/browser/accessibility/accessibility_tree_formatter_blink.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter_blink.cc
@@ -19,13 +19,19 @@ AccessibilityTreeFormatterBlink::~AccessibilityTreeFormatterBlink() {
uint32_t AccessibilityTreeFormatterBlink::ChildCount(
const BrowserAccessibility& node) const {
- return node.InternalChildCount();
+ if (node.HasIntAttribute(ui::AX_ATTR_CHILD_TREE_ID))
+ return node.PlatformChildCount();
+ else
+ return node.InternalChildCount();
}
BrowserAccessibility* AccessibilityTreeFormatterBlink::GetChild(
const BrowserAccessibility& node,
uint32_t i) const {
- return node.InternalGetChild(i);
+ if (node.HasIntAttribute(ui::AX_ATTR_CHILD_TREE_ID))
+ return node.PlatformGetChild(i);
+ else
+ return node.InternalGetChild(i);
}
void AccessibilityTreeFormatterBlink::AddProperties(
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698