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

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 799633007: Make Windows accessibility event firing aware of guest / child frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview_fixes
Patch Set: Fix Mac compile Created 5 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/browser_accessibility_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_cocoa.mm
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
index 0c50cc6edfbc2b3a39be4a207b3e9ec412688fa2..dd3daeb708ae7ca53fee6594de7b3bf4c8c34c11 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -537,13 +537,8 @@ NSDictionary* attributeToMethodNameMap = nil;
// Get the delegate for the topmost BrowserAccessibilityManager, because
// that's the only one that can convert points to their origin in the screen.
- BrowserAccessibilityManager* manager = browserAccessibility_->manager();
- BrowserAccessibility* root = manager->GetRoot();
- while (root->GetParent())
- root = root->GetParent()->manager()->GetRoot();
- manager = root->manager();
- BrowserAccessibilityDelegate* delegate = manager->delegate();
-
+ BrowserAccessibilityDelegate* delegate =
+ browserAccessibility_->manager()->GetDelegateFromRootManager();
if (delegate) {
gfx::Rect bounds(origin.x, origin.y, size.width, size.height);
gfx::Point point = delegate->AccessibilityOriginInScreen(bounds);
@@ -1572,4 +1567,3 @@ NSDictionary* attributeToMethodNameMap = nil;
}
@end
-
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698