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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 7461104: Fix a few lingering bugs in BrowserAccessibilityManager and BrowserAccessibilityCocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix corner case with removal of renderer to child id mappings. Created 9 years, 5 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
Index: chrome/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index 1f0b3d532e31f060d99c4cebd05e44952939c8ec..4da81f496fa548c329e4a7e369c81f22c3fe4aa6 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1063,6 +1063,9 @@ void RenderWidgetHostViewMac::OnAccessibilityNotifications(
if (!browser_accessibility_manager_.get()) {
// Use empty document to process notifications
webkit_glue::WebAccessibility empty_document;
+ // Renderer id's always start at 1000 as determined by webkit. Boot strap
+ // our ability to reuse BrowserAccessibility instances.
+ empty_document.id = 1000;
dmazzoni 2011/08/02 06:19:35 Could you move this to a common place, so it isn't
empty_document.role = WebAccessibility::ROLE_WEB_AREA;
empty_document.state = 0;
browser_accessibility_manager_.reset(

Powered by Google App Engine
This is Rietveld 408576698