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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 79024: Fix 10573: Dismissing FindInPage doesn't set focus to the link... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/test/ui_test_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 13860)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -1370,12 +1370,10 @@
if (this == main_frame_impl->active_match_frame() &&
active_match_.get()) {
- // If the user has changed the selection since the match was found, we
+ // If the user has set the selection since the match was found, we
// don't focus anything.
VisibleSelection selection(frame()->selection()->selection());
- if (selection.isNone() || (selection.start() == selection.end()) ||
- active_match_->boundingBox() !=
- selection.toNormalizedRange()->boundingBox())
+ if (!selection.isNone())
return;
// We will be setting focus ourselves, so we want the view to forget its
« no previous file with comments | « chrome/test/ui_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698