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

Unified Diff: chrome/renderer/render_view.cc

Issue 151195: Simplifying renderer focus management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 19803)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2151,21 +2151,9 @@
}
}
- // TODO(jcampan): http://b/issue?id=1157486 Remove StoreForFocus call once
- // we have the fix for 792423.
- search_frame->GetView()->StoreFocusForFrame(search_frame);
webview()->SetFocusedFrame(search_frame);
} while (!result && search_frame != focused_frame);
- // Make sure we don't leave any frame focused or the focus won't be restored
- // properly in WebViewImpl::SetFocus(). Note that we are talking here about
- // focused on the SelectionController, not FocusController.
- // webview()->GetFocusedFrame() will still return the last focused frame (as
- // it queries the FocusController).
- // TODO(jcampan): http://b/issue?id=1157486 Remove next line once we have the
- // fix for 792423.
- webview()->SetFocusedFrame(NULL);
-
if (options.findNext) {
// Force the main_frame to report the actual count.
main_frame->IncreaseMatchCount(0, request_id);
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698