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

Unified Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2299673002: Fix loading accessibility tree for child frame that's already loaded. (Closed)
Patch Set: Created 4 years, 4 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 | « content/browser/accessibility/dump_accessibility_tree_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/accessibility/render_accessibility_impl.cc
diff --git a/content/renderer/accessibility/render_accessibility_impl.cc b/content/renderer/accessibility/render_accessibility_impl.cc
index 64e9f6e6b72aa03d7fcf0d9c48d0f4aad818472b..b4ee843bb8a451bf23b83a65bcc28708764622bc 100644
--- a/content/renderer/accessibility/render_accessibility_impl.cc
+++ b/content/renderer/accessibility/render_accessibility_impl.cc
@@ -75,15 +75,6 @@ RenderAccessibilityImpl::RenderAccessibilityImpl(RenderFrameImpl* render_frame)
ack_pending_(false),
reset_token_(0),
weak_factory_(this) {
- // There's only one AXObjectCache for the root of a local frame tree,
- // so if this frame's parent is local we can safely do nothing.
- if (render_frame_ &&
- render_frame_->GetWebFrame() &&
- render_frame_->GetWebFrame()->parent() &&
- render_frame_->GetWebFrame()->parent()->isWebLocalFrame()) {
- return;
- }
-
WebView* web_view = render_frame_->GetRenderView()->GetWebView();
WebSettings* settings = web_view->settings();
settings->setAccessibilityEnabled(true);
« no previous file with comments | « content/browser/accessibility/dump_accessibility_tree_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698