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

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

Issue 2351043002: Objects with a role of IA2_EMBEDDED_OBJECT should get a role of IA_SYSTEM_GROUPPING because otherwi… (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index 2e3d24f90c880afd4c89815b1c4f449e27041fc3..1693c3312153ca7bbb27a259b7045663c2a7b20d 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -4832,7 +4832,7 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia_state |= STATE_SYSTEM_FOCUSABLE;
break;
case ui::AX_ROLE_EMBEDDED_OBJECT:
- if (HasIntAttribute(ui::AX_ATTR_CHILD_TREE_ID)) {
+ if (PlatformChildCount()) {
// Windows screen readers assume that IA2_ROLE_EMBEDDED_OBJECT
// doesn't have any children, but it may be something like a
// browser plugin that has a document inside.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698