diff options
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index c136625..776a5b5 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -2309,10 +2309,14 @@ void TabContents::OnFindReply(int request_id, if (active_match_ordinal == -1) active_match_ordinal = find_result_.active_match_ordinal(); + gfx::Rect selection = selection_rect; + if (selection.IsEmpty()) + selection = find_result_.selection_rect(); + // Notify the UI, automation and any other observers that a find result was // found. find_result_ = FindNotificationDetails(request_id, number_of_matches, - selection_rect, active_match_ordinal, + selection, active_match_ordinal, final_update); NotificationService::current()->Notify( NotificationType::FIND_RESULT_AVAILABLE, |