| Index: ui/views/controls/table/table_view.cc
|
| diff --git a/ui/views/controls/table/table_view.cc b/ui/views/controls/table/table_view.cc
|
| index ab17e37d723aad00bee65cb576e12a2cc833c984..94fe60c9bd560dccfb18cd4f10ac0cdd5a874369 100644
|
| --- a/ui/views/controls/table/table_view.cc
|
| +++ b/ui/views/controls/table/table_view.cc
|
| @@ -546,6 +546,8 @@
|
| const bool is_selected = selection_model_.IsSelected(model_index);
|
| if (is_selected)
|
| canvas->FillRect(GetRowBounds(i), selected_bg_color);
|
| + if (selection_model_.active() == model_index && HasFocus())
|
| + canvas->DrawFocusRect(GetRowBounds(i));
|
| for (int j = region.min_column; j < region.max_column; ++j) {
|
| const gfx::Rect cell_bounds(GetCellBounds(i, j));
|
| int text_x = kTextHorizontalPadding + cell_bounds.x();
|
| @@ -623,18 +625,11 @@
|
| }
|
|
|
| void TableView::OnFocus() {
|
| - ScrollView* scroll_view = ScrollView::GetScrollViewForContents(this);
|
| - if (scroll_view)
|
| - scroll_view->SetHasFocusIndicator(true);
|
| SchedulePaintForSelection();
|
| -
|
| NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, true);
|
| }
|
|
|
| void TableView::OnBlur() {
|
| - ScrollView* scroll_view = ScrollView::GetScrollViewForContents(this);
|
| - if (scroll_view)
|
| - scroll_view->SetHasFocusIndicator(false);
|
| SchedulePaintForSelection();
|
| }
|
|
|
|
|