Chromium Code Reviews| 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 70307b919d3e93b1d60cbc41593722767c4d1adf..ab0646e05f1843e7ae8bc676edcda06c99f5b63f 100644 |
| --- a/ui/views/accessibility/ax_widget_obj_wrapper.cc |
| +++ b/ui/views/accessibility/ax_widget_obj_wrapper.cc |
| @@ -32,9 +32,10 @@ AXAuraObjWrapper* AXWidgetObjWrapper::GetParent() { |
| void AXWidgetObjWrapper::GetChildren( |
| std::vector<AXAuraObjWrapper*>* out_children) { |
| - if (!widget_->IsVisible() || !widget_->GetRootView()->visible()) |
| + if (!widget_->IsVisible() || !widget_->GetRootView() || |
| + !widget_->GetRootView()->visible()) { |
|
sadrul
2017/02/02 17:15:31
It'd be better to move this into a separate CL wit
yiyix
2017/02/06 21:36:17
I will submit a separate cl for this change. Remov
|
| return; |
| - |
| + } |
| out_children->push_back( |
| AXAuraObjCache::GetInstance()->GetOrCreate(widget_->GetRootView())); |
| } |