| Index: views/view.cc
|
| diff --git a/views/view.cc b/views/view.cc
|
| index d3a9b982c70bc0d87707743498123d6c0912a09f..69cf67f8aee03392a74d81bde2621d64bff5471e 100644
|
| --- a/views/view.cc
|
| +++ b/views/view.cc
|
| @@ -264,7 +264,7 @@ void View::SetEnabled(bool state) {
|
| }
|
|
|
| bool View::IsFocusable() const {
|
| - return focusable_ && IsEnabled() && IsVisible();
|
| + return focusable_ && IsEnabled() && IsVisibleInRootView();
|
| }
|
|
|
| void View::SetFocusable(bool focusable) {
|
| @@ -272,7 +272,8 @@ void View::SetFocusable(bool focusable) {
|
| }
|
|
|
| bool View::IsAccessibilityFocusable() const {
|
| - return (focusable_ || accessibility_focusable_) && IsEnabled() && IsVisible();
|
| + return (focusable_ || accessibility_focusable_) && IsEnabled() &&
|
| + IsVisibleInRootView();
|
| }
|
|
|
| FocusManager* View::GetFocusManager() {
|
|
|