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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1423053002: Make document.activeElement work with OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-preserve-page-focus-on-subframe-navigations
Patch Set: Change plumbing a bit: use focusDocumentView on WebView and remove clearFocus from WebLocalFrame Created 5 years, 1 month 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
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index bf3b76a533a3704113c7a2f77c3f16aea9316dc1..5e250236287e8ee54adff2f548272dee3fb02330 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2786,6 +2786,11 @@ void WebViewImpl::setFocusedFrame(WebFrame* frame)
coreFrame->page()->focusController().setFocusedFrame(coreFrame);
}
+void WebViewImpl::focusDocumentView(WebFrame* frame)
+{
+ page()->focusController().focusDocumentView(toCoreFrame(frame));
+}
+
void WebViewImpl::setInitialFocus(bool reverse)
{
if (!m_page)

Powered by Google App Engine
This is Rietveld 408576698