Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1905)

Unified Diff: chrome/browser/find_bar_controller.cc

Issue 56193: Bug 2220: Fix for missing Find highlighting after Refresh (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/tab_contents/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/find_bar_controller.cc
===================================================================
--- chrome/browser/find_bar_controller.cc (revision 12934)
+++ chrome/browser/find_bar_controller.cc (working copy)
@@ -125,10 +125,15 @@
commit_details->entry->transition_type();
// We hide the FindInPage window when the user navigates away, except on
// reload.
- if (find_bar_->IsFindBarVisible() &&
- PageTransition::StripQualifier(transition_type) !=
- PageTransition::RELOAD) {
- EndFindSession();
+ if (find_bar_->IsFindBarVisible()) {
+ if (PageTransition::StripQualifier(transition_type) !=
+ PageTransition::RELOAD) {
+ EndFindSession();
+ } else {
+ // On Reload we want to make sure FindNext is converted to a full Find
+ // to make sure highlights for inactive matches are repainted.
+ web_contents_->set_find_op_aborted(true);
+ }
}
}
}
« no previous file with comments | « no previous file | chrome/browser/tab_contents/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698