Index: ui/views/accessibility/ax_widget_obj_wrapper.cc |
diff --git a/ui/views/accessibility/ax_widget_obj_wrapper.cc b/ui/views/accessibility/ax_widget_obj_wrapper.cc |
index 279e269c73ea38024df45689ca0cdb6f47b8b5ec..628b82fac76137d73f46c4f9648485d52f618694 100644 |
--- a/ui/views/accessibility/ax_widget_obj_wrapper.cc |
+++ b/ui/views/accessibility/ax_widget_obj_wrapper.cc |
@@ -30,6 +30,9 @@ AXAuraObjWrapper* AXWidgetObjWrapper::GetParent() { |
void AXWidgetObjWrapper::GetChildren( |
std::vector<AXAuraObjWrapper*>* out_children) { |
+ if (!widget_->IsVisible() || !widget_->GetRootView()->visible()) |
+ return; |
+ |
out_children->push_back( |
AXAuraObjCache::GetInstance()->GetOrCreate(widget_->GetRootView())); |
} |