| Index: chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| index 4de725fe0755917dbc64529cfe9ce8d40eb8950b..365ad60ec566ce6fff5ce117b9cadbe6d5bda96c 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| +++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| @@ -45,11 +45,18 @@ void AutofillPopupViewBridge::Show() {
|
| [view_ showPopup];
|
| }
|
|
|
| -void AutofillPopupViewBridge::InvalidateRow(size_t row) {
|
| - [view_ invalidateRow:row];
|
| +void AutofillPopupViewBridge::OnSelectedRowChanged(
|
| + size_t previous_row_selection,
|
| + size_t current_row_selection) {
|
| + if (previous_row_selection != static_cast<size_t>(kNoSelection) &&
|
| + previous_row_selection < controller_->GetLineCount())
|
| + [view_ invalidateRow:previous_row_selection];
|
| + if (current_row_selection != static_cast<size_t>(kNoSelection)) {
|
| + [view_ invalidateRow:current_row_selection];
|
| + }
|
| }
|
|
|
| -void AutofillPopupViewBridge::UpdateBoundsAndRedrawPopup() {
|
| +void AutofillPopupViewBridge::OnSuggestionsChanged() {
|
| [view_ updateBoundsAndRedrawPopup];
|
| }
|
|
|
|
|