summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 21:41:00 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 21:41:00 +0000
commit2d2dffc230e097791fc393da00b1cb6937488c12 (patch)
tree6c25eda664156428037589e672aa8f0c6ca4fffb /chrome/browser/tab_contents
parent965c6974b0e9387384d4bd558b160a8feff35fd2 (diff)
downloadchromium_src-2d2dffc230e097791fc393da00b1cb6937488c12.zip
chromium_src-2d2dffc230e097791fc393da00b1cb6937488c12.tar.gz
chromium_src-2d2dffc230e097791fc393da00b1cb6937488c12.tar.bz2
Fix 13570: Find box stops responding to browser window resize.
If you enter a search term and delete it, the Find box UI flag gets set as inactive and the box stops moving when the browser resizes. This fixes that. BUG=13570 TEST=Open Find, press 'e', press Backspace, resize the window. The Find box should move. Review URL: http://codereview.chromium.org/119383 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17980 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index a39f7eb..47b3eb2 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -970,7 +970,10 @@ void TabContents::StartFinding(string16 find_text,
}
void TabContents::StopFinding(bool clear_selection) {
- find_ui_active_ = false;
+ // When |clear_selection| is true, it means the find string has been cleared
+ // by the user, but the UI has not been dismissed.
+ if (!clear_selection)
+ find_ui_active_ = false;
find_op_aborted_ = true;
last_search_result_ = FindNotificationDetails();
render_view_host()->StopFinding(clear_selection);